summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorDrew Noel2020-05-01 09:55:05 -0400
committerDrew Noel2020-05-01 09:55:24 -0400
commita8961ee3b21c3356dd98cbc00726d300b2d90884 (patch)
tree18e05f794e11f905dde7fe66184c8d6cd000f041 /PKGBUILD
parent2c18d85ea591f12bdac05285840ac5cd65da559e (diff)
downloadaur-a8961ee3b21c3356dd98cbc00726d300b2d90884.tar.gz
Add chown to the build process
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD7
1 files changed, 6 insertions, 1 deletions
diff --git a/PKGBUILD b/PKGBUILD
index e006bb528aa..a37a6f21021 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@ _npmname=nativefier
_npmver=8.0.7
pkgname=nodejs-nativefier
pkgver=8.0.7
-pkgrel=1
+pkgrel=2
pkgdesc="Wrap web apps natively"
arch=(any)
url="https://github.com/jiahaog/nativefier#readme"
@@ -12,6 +12,7 @@ makedepends=('jq' 'npm')
optdepends=()
source=(http://registry.npmjs.org/$_npmname/-/$_npmname-$_npmver.tgz)
sha1sums=('b52957f0c55bd2619e6970c34bc73c22e5ebf09c')
+noextract=("$_npmname-$_npmver.tgz")
package() {
# Thanks jeremejevs and je-vv for the pointers on these!
@@ -20,6 +21,10 @@ package() {
# Fix permissions
find "$pkgdir"/usr -type d -exec chmod 755 {} +
+ # npm gives ownership of ALL FILES to build user
+ # https://bugs.archlinux.org/task/63396
+ chown -R root:root "${pkgdir}"
+
# Remove references to pkgdir
find "$pkgdir" -type f -name package.json -print0 | xargs -0 sed -i "/_where/d"