diff options
author | GoliathLabs | 2020-06-14 18:25:47 +0200 |
---|---|---|
committer | GoliathLabs | 2020-06-14 18:25:47 +0200 |
commit | 18351642b53881a9b241fd4ca561ddbbd933ebf1 (patch) | |
tree | 67b1d79f09927fb9cdca05099ba6b8bccefebbc9 | |
parent | abe973c125c3463d3f910f4d28ae34ae9758fd56 (diff) | |
download | aur-18351642b53881a9b241fd4ca561ddbbd933ebf1.tar.gz |
Updated: PKGBUILD
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 13 |
2 files changed, 13 insertions, 2 deletions
@@ -1,7 +1,7 @@ pkgbase = homebridge-git pkgdesc = HomeKit support for the impatient pkgver = 0.4.46.r222.g721ff2c - pkgrel = 2 + pkgrel = 3 url = https://github.com/nfarina/homebridge install = homebridge.install arch = any @@ -4,7 +4,7 @@ _pkgname=homebridge pkgname=$_pkgname-git pkgver=0.4.46.r222.g721ff2c -pkgrel=2 +pkgrel=3 pkgdesc="HomeKit support for the impatient" arch=('any') url="https://github.com/nfarina/homebridge" @@ -52,6 +52,17 @@ package() { install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${_pkgname}" npm install -g --user root --prefix "$pkgdir"/usr "$srcdir"/$_pkgname.tgz + # Non-deterministic race in npm gives 777 permissions to random directories. + # See https://github.com/npm/npm/issues/9359 for details. + chmod -R u=rwX,go=rX "$pkgdir" + + # npm installs package.json owned by build user + # https://bugs.archlinux.org/task/63396 + chown -R root:root "$pkgdir" + + # Delete npm installed pyc files + find "$pkgdir" -name "*.pyc" -delete + [ -z "$HOMEBRIDGE_KEEP_GIT_HISTORY" ] && rm -rf "${pkgdir}/usr/lib/node_modules/${_pkgname}/.git" install -Dm644 "${srcdir}/${_pkgname}-system.service" "$pkgdir/usr/lib/systemd/system/${_pkgname}.service" |