diff options
author | Jean Lucas | 2018-10-20 22:29:16 -0400 |
---|---|---|
committer | Jean Lucas | 2018-10-20 22:29:59 -0400 |
commit | 37affcbd55675447831ce497b3118f9bead19f3d (patch) | |
tree | af6044cca25b3962b946e514e6e295dbb6619a53 /PKGBUILD | |
parent | 61b4c1eedeb39f2c0559092c35b844f1a56e6357 (diff) | |
download | aur-37affcbd55675447831ce497b3118f9bead19f3d.tar.gz |
Install from npm
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 16 |
1 files changed, 3 insertions, 13 deletions
@@ -2,7 +2,7 @@ pkgname=stf pkgver=3.4.0 -pkgrel=1 +pkgrel=2 pkgdesc='Web application for debugging Android devices' arch=(i686 x86_64) url=https://openstf.io @@ -16,18 +16,8 @@ depends=(nodejs-lts-carbon pkg-config) makedepends=(npm) options=(!strip) -source=(https://github.com/openstf/stf/archive/v$pkgver.tar.gz) -sha512sums=('dbd51aeb59a77db235b8a271464f8304ae2882fe10cf4369ea0d606231b1255eb353c8b1bd27cb0ff1f8541b6daa1e9f8b6b05ec989e62e226d01158421d480b') - -build() { - cd stf-$pkgver - npm install -} package() { - cd stf-$pkgver - install -d "$pkgdir"/usr/{share/stf,bin,share/licenses/stf} - cp -a . "$pkgdir"/usr/share/stf - ln -s /usr/share/stf/bin/stf "$pkgdir"/usr/bin/stf - cp LICENSE "$pkgdir"/usr/share/licenses/stf + npm install -g --prefix="$pkgdir"/usr stf@$pkgver + find "$pkgdir"/usr -type d -exec chmod 755 {} + } |