1234567891011121314151617181920212223242526272829303132333435363738394041 |
- # Maintainer: Anyone
- _appname=%APPNAME%
- pkgname=${_appname}-appimage
- pkgver=1
- pkgrel=1
- pkgdesc=''
- arch=('x86_64')
- url='%URL%'
- license=(GPLv3)
- depends=()
- optdepends=('')
- provides=('eddie-ui-appimage')
- conflicts=('')
- _filename="${_appname}-${pkgver}-${CARCH}.AppImage"
- source=("${_filename}::%SRCURL%")
- sha1sums=('%SHA1%')
- prepare() {
- # Extract AppImage
- cd "${srcdir}"
- chmod +x ${_filename}
- eval ./${_filename} --appimage-extract
- }
- package() {
- # Install AppImage
- install -Dm755 "${srcdir}/${_filename}" "${pkgdir}/opt/AppImages/${_appname}.AppImage"
- ExecScript="#!/bin/sh\nexec /opt/AppImages/${_filename} \"\$@\""
- echo $ExecScript > "${pkgdir}/usr/bin/${_appname}"
- chmod +x "${pkgdir}/usr/bin/${_appname}"
-
- # Install Desktop
- install -Dm644 "${srcdir}/squashfs-root/${_appname}.desktop" "${pkgdir}/usr/share/applications/${_appname}.desktop"
-
- # Install Icon
- icon_size="$(identify -format '%wx%h' ${srcdir}/squashfs-root/${_appname}.png)"
- install -Dm644 "${srcdir}/squashfs-root/${_appname}.png" "${pkgdir}/usr/share/icons/hicolor/${icon_size}/apps/${_appname}.png"
- }
|