PKGBUILD 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # Maintainer: Megavolt <max.megavolt@posteo.de>
  2. _appname=eddie-ui
  3. pkgname=${_appname}-appimage
  4. pkgver=2.21.6
  5. pkgrel=1
  6. pkgdesc='Eddie - VPN tunnel - UI'
  7. arch=('x86_64')
  8. url='https://eddie.website/'
  9. license=(GPLv3)
  10. depends=('libappindicator-gtk2')
  11. optdepends=('')
  12. provides=("${pkgname}")
  13. conflicts=('airvpn-bin' 'airvpn-beta-bin' 'eddie-ui-git' 'eddie-ui')
  14. _filename="${_appname}-${pkgver}-${CARCH}.AppImage"
  15. source=("${_filename}::https://eddie.website/download/?platform=linux&arch=x64&ui=ui&format=appimage.AppImage&version=${pkgver}")
  16. sha1sums=('6b30eb3ad6dae3b1e61cbc0b43f92e758b7d35a4')
  17. prepare() {
  18. # Extract AppImage
  19. cd "${srcdir}"
  20. chmod +x ${_filename}
  21. eval ./${_filename} --appimage-extract "${_appname}.desktop"
  22. eval ./${_filename} --appimage-extract "${_appname}.png"
  23. }
  24. package() {
  25. # Install AppImage
  26. install -Dm755 "${srcdir}/${_filename}" "${pkgdir}/opt/AppImages/${_filename}"
  27. mkdir -p "${pkgdir}/usr/bin/"
  28. ExecScript="#!/bin/sh\nexec /opt/AppImages/${_filename} \"\$@\""
  29. echo -e $ExecScript > "${pkgdir}/usr/bin/${_appname}"
  30. chmod +x "${pkgdir}/usr/bin/${_appname}"
  31. #install -Dm755 "${srcdir}/${_appname}" "${pkgdir}/usr/bin/${_appname}"
  32. # Install Desktop
  33. install -Dm644 "${srcdir}/squashfs-root/${_appname}.desktop" "${pkgdir}/usr/share/applications/${_appname}.desktop"
  34. # Install Icon
  35. icon_size="$(identify -format '%wx%h' ${srcdir}/squashfs-root/${_appname}.png)"
  36. install -Dm644 "${srcdir}/squashfs-root/${_appname}.png" "${pkgdir}/usr/share/icons/hicolor/${icon_size}/apps/${_appname}.png"
  37. }