summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorGoliathLabs2020-06-14 18:25:47 +0200
committerGoliathLabs2020-06-14 18:25:47 +0200
commit18351642b53881a9b241fd4ca561ddbbd933ebf1 (patch)
tree67b1d79f09927fb9cdca05099ba6b8bccefebbc9
parentabe973c125c3463d3f910f4d28ae34ae9758fd56 (diff)
downloadaur-18351642b53881a9b241fd4ca561ddbbd933ebf1.tar.gz
Updated: PKGBUILD
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD13
2 files changed, 13 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index f2e1e6f4d77..f8aa14b07fd 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -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
diff --git a/PKGBUILD b/PKGBUILD
index de1e29eb2a1..91f452675c1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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"