diff options
author | Caleb Maclennan | 2020-03-07 15:39:43 +0300 |
---|---|---|
committer | Caleb Maclennan | 2020-03-07 15:39:43 +0300 |
commit | 72ab492a3c0036433bda31407c33fccac105da47 (patch) | |
tree | 59f89b3d6228e8f2f1e31e7223a51888fb9b3637 | |
parent | 417f85061f95dddb1f053ff3f22af74820f4a286 (diff) | |
download | aur-72ab492a3c0036433bda31407c33fccac105da47.tar.gz |
Suppress rebuilds on use
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 8 |
2 files changed, 8 insertions, 2 deletions
@@ -1,7 +1,7 @@ pkgbase = nodejs-sword-interface pkgdesc = Javascript (N-API) interface to SWORD library pkgver = 0.117.0 - pkgrel = 1 + pkgrel = 2 url = https://github.com/tobias-klein/node-sword-interface arch = x86_64 license = GPL3 @@ -3,7 +3,7 @@ pkgname=nodejs-sword-interface _npmname=${pkgname/js} pkgver=0.117.0 -pkgrel=1 +pkgrel=2 pkgdesc='Javascript (N-API) interface to SWORD library' arch=('x86_64') url="https://github.com/tobias-klein/$_npmname" @@ -13,6 +13,12 @@ makedepends=('jq' 'node-gyp' 'moreutils' 'npm' 'sword') source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz") sha256sums=('89e7fde88f4612a35d00e1e2e54e7b79b8ad55cb0947a7ae73ecf6df0272f5df') +prepare() { + cd "$_npmname-$pkgver" + # Suppress install or link against this package triggering a build! + jq 'del(.scripts[])' package.json | sponge package.json +} + build() { cd "$_npmname-$pkgver" npm pack |