diff options
-rw-r--r-- | .SRCINFO | 8 | ||||
-rw-r--r-- | PKGBUILD | 28 | ||||
-rw-r--r-- | popcorntime.desktop | 10 |
3 files changed, 24 insertions, 22 deletions
@@ -1,6 +1,6 @@ pkgbase = popcorntime-git pkgdesc = Popcorn Time is a multi-platform, free software BitTorrent client that includes an integrated media player. - pkgver = v0.4.0+r6483+g5c68847e + pkgver = v0.4.0+r6485+g597a9871 pkgrel = 1 url = https://popcorntime.app arch = i686 @@ -15,12 +15,12 @@ pkgbase = popcorntime-git depends = nodejs provides = popcorntime conflicts = popcorntime - conflicts = popcorntime-ce - options = !strip + conflicts = popcorntime-bin + options = !emptydirs source = git+https://github.com/popcorn-official/popcorn-desktop#branch=development source = popcorntime.desktop sha512sums = SKIP - sha512sums = abf5d406467422168944244b95eac0d2c23ca4140cd803afeea852e9a15a5176a019a5772be919234fe01ceec0d8d135158900e828144b0079018015662f7dcd + sha512sums = b888e5bb4197a260328e48f14496852359f08e23f7907d7fa9680c26197c35eca01c9da8fe22ab0da4d29be22251277beaf3c78897e7f9e3a416ddb33fd1e322 pkgname = popcorntime-git @@ -4,8 +4,9 @@ # Contributor: Eric Engestrom <aur [at] engestrom [dot] ch> # Contributor: Attila Bukor <r1pp3rj4ck [at] w4it [dot] eu> +# https://jlk.fjfi.cvut.cz/arch/manpages/man/PKGBUILD.5 pkgname=popcorntime-git -pkgver=v0.4.0+r6483+g5c68847e +pkgver=v0.4.0+r6485+g597a9871 pkgrel=1 pkgdesc='Popcorn Time is a multi-platform, free software BitTorrent client that includes an integrated media player.' arch=(i686 x86_64) @@ -14,23 +15,18 @@ license=(GPL3) depends=(gtk3 libxss nss nodejs) makedepends=(git yarn npm) provides=(popcorntime) -conflicts=(popcorntime popcorntime-ce) -options=(!strip) +conflicts=(popcorntime popcorntime-bin) +options=(!emptydirs) source=(git+https://github.com/popcorn-official/popcorn-desktop#branch=development popcorntime.desktop) sha512sums=('SKIP' - 'abf5d406467422168944244b95eac0d2c23ca4140cd803afeea852e9a15a5176a019a5772be919234fe01ceec0d8d135158900e828144b0079018015662f7dcd') + '81a447cd3365b439964c1b9eba14bcf31de05e62123ce032590ac2109a447c5db0306bf4c593fe30f075d2b3674a1611a81b7554e43acba152ef34652c819a33') pkgver() { cd popcorn-desktop - echo $(git describe --abbrev=0)+r$(git rev-list --count HEAD)+g$(git rev-parse --short HEAD) + echo "$(git describe --abbrev=0)+r$(git rev-list --count HEAD)+g$(git rev-parse --short HEAD)" } -# prepare() { -# cd popcorn-desktop -# patch -p1 --binary < "$srcdir/nwjs-patch.diff" -# } - build() { cd popcorn-desktop yarn config set yarn-offline-mirror ./node_modules/ @@ -38,6 +34,7 @@ build() { yarn build } +# https://wiki.archlinux.org/index.php/creating_packages package() { cd popcorn-desktop @@ -47,10 +44,13 @@ package() { "$pkgdir/usr/share/popcorntime" # Fix file permissions - find "$pkgdir/usr/share/popcorntime" -type f -not -name Popcorn-Time -exec chmod 644 {} + + find "$pkgdir/usr/share/popcorntime" -type f -not -name 'Popcorn-Time' -exec chmod 644 {} + + find "$pkgdir/usr/share/popcorntime" -type d -exec chmod 755 {} + - ln -s /usr/share/popcorntime/Popcorn-Time "$pkgdir"/usr/bin/popcorntime + # Symlink binary to /usr/bin/popcorntime + # See: https://bbs.archlinux.org/viewtopic.php?id=143970 + ln -sv /usr/share/popcorntime/Popcorn-Time "$pkgdir/usr/bin/popcorntime" - install -Dm 644 ../popcorntime.desktop -t "$pkgdir"/usr/share/applications - install -Dm 644 src/app/images/icon.png "$pkgdir"/usr/share/icons/hicolor/256x256/apps/popcorntime.png + install -Dm 644 "$srcdir/popcorntime.desktop" -t "$pkgdir/usr/share/applications" + install -Dm 644 src/app/images/icon.png "$pkgdir/usr/share/icons/hicolor/256x256/apps/popcorntime.png" } diff --git a/popcorntime.desktop b/popcorntime.desktop index 16cb30ae51a5..64c7ae978b68 100644 --- a/popcorntime.desktop +++ b/popcorntime.desktop @@ -1,10 +1,12 @@ [Desktop Entry] -Version=1.0 +Version=1.1 Type=Application Name=Popcorn Time -Comment=BitTorrent client with integrated media player -Exec=popcorntime %U +Comment=Watch Movies and TV Shows instantly! +Exec=/usr/bin/popcorntime %U Icon=popcorntime MimeType=application/x-bittorrent;x-scheme-handler/magnet; -Categories=AudioVideo;Video;Player;Network;FileTransfer;P2P; +Categories=Multimedia;AudioVideo;Video;Player;Network;FileTransfer;P2P; Terminal=false +StartupNotify=true +Keywords=movies;streaming;bittorrent; |