diff options
author | Christoph Fink | 2020-03-28 18:14:55 +0200 |
---|---|---|
committer | Christoph Fink | 2020-03-28 18:14:55 +0200 |
commit | 0fbf2611727ec4dd5540b284496129b0706950d3 (patch) | |
tree | aa04dec19f366524d8c11b2b791785accc40dbf9 | |
parent | 45af619d789be567e221b3fdd6ff8eacafcf8d5a (diff) | |
download | aur-0fbf2611727ec4dd5540b284496129b0706950d3.tar.gz |
Added cleaning steps to package(), as recommended in https://wiki.archlinux.org/index.php/Node.js_package_guidelines
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 10 |
2 files changed, 10 insertions, 2 deletions
@@ -1,7 +1,7 @@ pkgbase = gnome-shell-extension-cast-to-tv-git pkgdesc = Cast files to your Chromecast or other devices over local network pkgver = v12.r33.g1483c4e - pkgrel = 1 + pkgrel = 2 url = https://github.com/Rafostar/gnome-shell-extension-cast-to-tv-git arch = x86_64 license = GPL @@ -9,7 +9,7 @@ arch=("x86_64") license=("GPL") pkgver=v12.r33.g1483c4e -pkgrel=1 +pkgrel=2 provides=("gnome-shell-extension-cast-to-tv") conflicts=("gnome-shell-extension-cast-to-tv") @@ -70,4 +70,12 @@ package() { -Dm644 \ nautilus/nautilus-cast-to-tv.py \ "$pkgdir/usr/share/nautilus-python/extensions/nautilus-cast-to-tv.py" + + # Non-deterministic race in npm gives 777 permissions to random directories. + # See https://github.com/npm/npm/issues/9359 for details. + 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}" } |