diff options
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 23 |
2 files changed, 13 insertions, 14 deletions
@@ -1,9 +1,9 @@ # Generated by mksrcinfo v8 -# Thu Jul 19 05:34:14 UTC 2018 +# Sat Jul 21 20:42:18 UTC 2018 pkgbase = popcorntime-git pkgdesc = Stream movies and TV shows from torrents pkgver = 0.3.10+6288+be800aa9 - pkgrel = 1 + pkgrel = 2 url = https://popcorntime.sh arch = i686 arch = x86_64 @@ -7,7 +7,7 @@ pkgname=popcorntime-git _pkgname=popcorntime _gitname=popcorn-desktop pkgver=0.3.10+6288+be800aa9 -pkgrel=1 +pkgrel=2 pkgdesc='Stream movies and TV shows from torrents' arch=(i686 x86_64) url=https://popcorntime.sh @@ -24,24 +24,23 @@ sha512sums=(SKIP pkgver() { cd $_gitname - printf $(git tag)+$(git rev-list --count HEAD)+$(git rev-parse --short HEAD) + echo $(git tag)+$(git rev-list --count HEAD)+$(git rev-parse --short HEAD) } -#prepare() { -# cd $_gitname -# msg2 'Using upstream NW.js instead of downstream one...' -# sed -i s#get.popcorntime.sh/repo/nw#dl.nwjs.io# gulpfile.js -#} +prepare() { + msg2 'Using upstream NW.js instead of downstream...' + sed -i s#get.popcorntime.sh/repo/nw#dl.nwjs.io# $_gitname/gulpfile.js +} [ "$CARCH" = i686 ] && _arch=x86 _platform=linux32 [ "$CARCH" = x86_64 ] && _arch=x64 _platform=linux64 build() { msg2 'Using temporary Node.js toolchain...' - _nodever=v6.14.3 - _node=node-$_nodever-linux-$_arch - [ -f $_node.tar.xz ] || wget https://nodejs.org/dist/$_nodever/$_node.tar.xz - tar xfp node-$_nodever-linux-$_arch.tar.xz + _nodever=6.14.3 + _node=node-v$_nodever-linux-$_arch + [ -f $_node.tar.xz ] || wget https://nodejs.org/dist/v$_nodever/$_node.tar.xz + tar xfp $_node.tar.xz export PATH=$PWD/$_node/bin:$PWD/$_gitname/node_modules/.bin:$PATH export npm_config_cache=$PWD/npm_cache cd $_gitname @@ -50,10 +49,10 @@ build() { } package() { - install -d $pkgdir/usr/{share/$_pkgname,bin} install -Dm 644 $_pkgname.desktop $pkgdir/usr/share/applications/$_pkgname.desktop cd $_gitname/build/Popcorn-Time/$_platform install -Dm 644 src/app/images/icon.png $pkgdir/usr/share/icons/hicolor/256x256/apps/$_pkgname.png + install -d $pkgdir/usr/{share/$_pkgname,bin} cp -a . $pkgdir/usr/share/$_pkgname cd $pkgdir/usr/share/$_pkgname find . -type f -exec chmod -R +r,-x {} + |