2021-07-24 10:00:43 +00:00
|
|
|
# Maintainer: George Rawlinson <george@rawlinson.net.nz>
|
|
|
|
|
|
|
|
pkgname=nodejs-homebridge-denon-tv
|
|
|
|
_pkgname="${pkgname#nodejs-}"
|
2021-08-31 23:30:41 +00:00
|
|
|
pkgver=3.11.0
|
2021-07-24 10:00:43 +00:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="Homebridge plugin for Denon/Marantz AV receivers"
|
|
|
|
arch=('any')
|
|
|
|
url="https://github.com/grzegorz914/homebridge-denon-tv"
|
|
|
|
license=('MIT')
|
|
|
|
depends=('homebridge')
|
|
|
|
makedepends=('npm')
|
|
|
|
options=('!strip')
|
|
|
|
source=("$_pkgname-$pkgver.tar.gz::https://registry.npmjs.org/$_pkgname/-/$_pkgname-$pkgver.tgz")
|
|
|
|
noextract=("$_pkgname-$pkgver.tar.gz")
|
2021-08-31 23:30:41 +00:00
|
|
|
b2sums=('b79eb2a4cc185844bebaec674cf407a898996950d9a5ff7b74d08df80bdd04ae082f1e039baa3c4b58693aa0f15e1a1b6b817a84f91ee41b9e81e9ac6abbc726')
|
2021-07-24 10:00:43 +00:00
|
|
|
|
|
|
|
package() {
|
2021-08-08 00:10:46 +00:00
|
|
|
local NPM_FLAGS=(--no-audit --no-fund --no-update-notifier)
|
|
|
|
|
|
|
|
npm install --global --prefix "$pkgdir/usr" "$_pkgname-$pkgver.tar.gz" "${NPM_FLAGS[@]}"
|
2021-07-24 10:00:43 +00:00
|
|
|
|
|
|
|
# Non-deterministic race in npm gives 777 permissions to random directories
|
|
|
|
# See https://github.com/npm/cli/issues/1103 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"
|
|
|
|
|
|
|
|
install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" \
|
|
|
|
"$pkgdir/usr/lib/node_modules/$_pkgname/LICENSE"
|
|
|
|
}
|