diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 27 |
1 files changed, 21 insertions, 6 deletions
@@ -2,18 +2,26 @@ pkgname=zerotwo pkgver=0.6.2+beta -pkgrel=1 -pkgdesc='AniList Anime tracker written with Electron & Vue.js' +pkgrel=2 +pkgdesc='AniList anime tracker written with Electron & Vue.js' arch=(i686 x86_64) url=https://www.zerotwo.org license=(GPL3) conflicts=(zerotwo-bin zerotwo-git) makedepends=(npm) -source=(https://github.com/NicoAiko/zerotwo/archive/v${pkgver/+/-}.tar.gz) -sha512sums=('077efb8bbdf2dd86366fc61aa985521c04f316c3ba0e6ac7439332c35f423a37008d0a0ee3b75b89669533861c36cebf81d5bc018526d8dd5257e01477e07396') +source=(https://github.com/NicoAiko/zerotwo/archive/v${pkgver/+/-}.tar.gz + zerotwo.desktop) +sha512sums=('077efb8bbdf2dd86366fc61aa985521c04f316c3ba0e6ac7439332c35f423a37008d0a0ee3b75b89669533861c36cebf81d5bc018526d8dd5257e01477e07396' + '8811f73498b76d5985e819d40d84b1a88919c71b563de8ca58a831e9ffd5b1ec54d525d263a01c053a761385712669deb993824545af98e51d2ce73f96788bd3') build() { cd zerotwo-${pkgver/+/-} + + # You must generate an API client ID and secret on AniList in order to use the login function + _api_id= + _api_secret= + echo -e CLIENT_ID=${_api_id}'\n'CLIENT_SECRET=${_api_secret} > .env + npm i NODE_ENV=production \ ELECTRON_BUILDER_ALLOW_UNRESOLVED_DEPENDENCIES=true \ @@ -22,7 +30,14 @@ build() { package() { install -d "$pkgdir"/usr/{share,bin} - cp -a zerotwo-${pkgver/+/-}/build/linux-unpacked \ - "$pkgdir"/usr/share/zerotwo + install -Dm 644 zerotwo.desktop -t "$pkgdir"/usr/share/applications + + cd zerotwo-${pkgver/+/-}/build + + cp -a linux-unpacked "$pkgdir"/usr/share/zerotwo ln -s /usr/share/zerotwo/zerotwo-ui "$pkgdir"/usr/bin/zerotwo + + for i in 16 32 64 128 256 512 1024 ; do + install -Dm 644 icons/ZeroTwoAppIcon_$i* "$pkgdir"/usr/share/icons/hicolor/${i}x${i}/apps/zerotwo.png + done } |