PKGBUILD 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # Maintainer: Anyone
  2. _appname=%APPNAME%
  3. pkgname=${_appname}-appimage
  4. pkgver=1
  5. pkgrel=1
  6. pkgdesc=''
  7. arch=('x86_64')
  8. url='%URL%'
  9. license=(GPLv3)
  10. depends=()
  11. optdepends=('')
  12. provides=('eddie-ui-appimage')
  13. conflicts=('')
  14. _filename="${_appname}-${pkgver}-${CARCH}.AppImage"
  15. source=("${_filename}::%SRCURL%")
  16. sha1sums=('%SHA1%')
  17. prepare() {
  18. # Extract AppImage
  19. cd "${srcdir}"
  20. chmod +x ${_filename}
  21. eval ./${_filename} --appimage-extract
  22. }
  23. package() {
  24. # Install AppImage
  25. install -Dm755 "${srcdir}/${_filename}" "${pkgdir}/opt/AppImages/${_appname}.AppImage"
  26. ExecScript="#!/bin/sh\nexec /opt/AppImages/${_filename} \"\$@\""
  27. echo $ExecScript > "${pkgdir}/usr/bin/${_appname}"
  28. chmod +x "${pkgdir}/usr/bin/${_appname}"
  29. # Install Desktop
  30. install -Dm644 "${srcdir}/squashfs-root/${_appname}.desktop" "${pkgdir}/usr/share/applications/${_appname}.desktop"
  31. # Install Icon
  32. icon_size="$(identify -format '%wx%h' ${srcdir}/squashfs-root/${_appname}.png)"
  33. install -Dm644 "${srcdir}/squashfs-root/${_appname}.png" "${pkgdir}/usr/share/icons/hicolor/${icon_size}/apps/${_appname}.png"
  34. }