diff options
author | Dimitris Kiziridis | 2020-03-19 13:40:45 +0200 |
---|---|---|
committer | Dimitris Kiziridis | 2020-03-19 13:40:45 +0200 |
commit | 968dbb71295ada8945db71e866cf6df793488e77 (patch) | |
tree | b8603dc62fdc1e47f3271dd3a3010e8debea80b4 | |
parent | c2f65be1f6114341e378f41fc9b0972e382c5ca0 (diff) | |
download | aur-968dbb71295ada8945db71e866cf6df793488e77.tar.gz |
bugfix
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 8 |
2 files changed, 8 insertions, 2 deletions
@@ -1,7 +1,7 @@ pkgbase = feathers-cli pkgdesc = The command line interface for scaffolding Feathers applications pkgver = 4.3.0 - pkgrel = 1 + pkgrel = 2 url = https://github.com/feathersjs/feathers arch = any license = MIT @@ -2,7 +2,7 @@ pkgname=feathers-cli pkgver=4.3.0 -pkgrel=1 +pkgrel=2 pkgdesc="The command line interface for scaffolding Feathers applications" arch=('any') url='https://github.com/feathersjs/feathers' @@ -18,5 +18,11 @@ package() { mkdir ${srcdir}/npm-cache npm install --cache "${srcdir}/npm-cache" -g --user root --prefix "${pkgdir}/usr" "${srcdir}/v4.3.0.tar.gz" find "${pkgdir}/usr" -type d -exec chmod 755 {} + + find "$pkgdir" -name package.json -print0 | xargs -r -0 sed -i '/_where/d' + local tmppackage="$(mktemp)" + local pkgjson="$pkgdir/usr/lib/node_modules/@feathersjs/cli/package.json" + jq '.|=with_entries(select(.key|test("_.+")|not))' "$pkgjson" > "$tmppackage" + mv "$tmppackage" "$pkgjson" + chmod 644 "$pkgjson" chown -R root:root "${pkgdir}" }
\ No newline at end of file |