diff options
author | Drew Noel | 2020-05-01 09:55:05 -0400 |
---|---|---|
committer | Drew Noel | 2020-05-01 09:55:24 -0400 |
commit | a8961ee3b21c3356dd98cbc00726d300b2d90884 (patch) | |
tree | 18e05f794e11f905dde7fe66184c8d6cd000f041 /PKGBUILD | |
parent | 2c18d85ea591f12bdac05285840ac5cd65da559e (diff) | |
download | aur-a8961ee3b21c3356dd98cbc00726d300b2d90884.tar.gz |
Add chown to the build process
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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" |