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 | |
parent | 61b4c1eedeb39f2c0559092c35b844f1a56e6357 (diff) | |
download | aur-37affcbd55675447831ce497b3118f9bead19f3d.tar.gz |
Install from npm
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 16 |
2 files changed, 5 insertions, 17 deletions
@@ -1,9 +1,9 @@ # Generated by mksrcinfo v8 -# Thu Aug 9 08:09:22 UTC 2018 +# Sun Oct 21 02:29:54 UTC 2018 pkgbase = stf pkgdesc = Web application for debugging Android devices pkgver = 3.4.0 - pkgrel = 1 + pkgrel = 2 url = https://openstf.io arch = i686 arch = x86_64 @@ -17,8 +17,6 @@ pkgbase = stf depends = yasm depends = pkg-config options = !strip - source = https://github.com/openstf/stf/archive/v3.4.0.tar.gz - sha512sums = dbd51aeb59a77db235b8a271464f8304ae2882fe10cf4369ea0d606231b1255eb353c8b1bd27cb0ff1f8541b6daa1e9f8b6b05ec989e62e226d01158421d480b pkgname = stf @@ -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 {} + } |