diff options
author | Pieter Goetschalckx | 2017-01-31 20:03:11 +0100 |
---|---|---|
committer | Pieter Goetschalckx | 2017-01-31 20:03:11 +0100 |
commit | 371ecac68f27ff23f492eaf8d8e3f6b6e3245270 (patch) | |
tree | b6ce7c36d55da1ad8a9842b3be9c4802117a4e28 /PKGBUILD | |
parent | 0fc7acb8666981600155d2a9aba0dddb7057de52 (diff) | |
download | aur-371ecac68f27ff23f492eaf8d8e3f6b6e3245270.tar.gz |
Update dependencies and make executable
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 16 |
1 files changed, 7 insertions, 9 deletions
@@ -5,14 +5,14 @@ pkgname=popcorntime-git _pkgname=popcorntime _gitname=popcorn-desktop -pkgver=r6157.5aabb4b +pkgver=r6211.db796345 pkgrel=1 pkgdesc="Stream movies and TV shows from torrents" arch=('i686' 'x86_64') url="https://popcorntime.sh" license=('GPL3') -depends=('alsa-lib' 'gconf' 'gtk2' 'nss' 'ttf-font' 'libxtst' 'libnotify' 'desktop-file-utils') -makedepends=('git' 'npm' 'bower' 'nodejs-grunt-cli' 'gulp') +depends=('alsa-lib' 'gconf' 'gtk2' 'nss' 'ttf-font' 'libxtst' 'libnotify') +makedepends=('git' 'npm') conflicts=('popcorntime' 'popcorn-time-ce') provides=('popcorntime') options=('!strip') @@ -29,14 +29,11 @@ pkgver() { printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } -prepare() { - cd "${_gitname}" - npm install -} - build() { cd "${_gitname}" - gulp build -p ${_platform} + + npm install + node_modules/.bin/gulp build --platforms ${_platform} } package() { @@ -56,4 +53,5 @@ package() { # Copy complete content of source archive to /usr/share/${_pkgname}/ cp -a "${_bpath}"/* "${pkgdir}/usr/share/${_pkgname}/" + chmod +x "${pkgdir}/usr/share/${_pkgname}/Popcorn-Time" } |