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-06 11:10:22 +00:00
|
|
|
pkgver=3.10.74
|
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-06 11:10:22 +00:00
|
|
|
b2sums=('f4d926e0508b72d7d62f2e4a14a5a1eb8f45ca9b6521157f34e081cc0c21ed478b44399a24e01fac7b30f77f9cab736a52eb39c798d8a810e2cfa02b864c583a')
|
2021-07-24 10:00:43 +00:00
|
|
|
|
|
|
|
package() {
|
|
|
|
npm install --global --prefix "$pkgdir/usr" "$_pkgname-$pkgver.tar.gz"
|
|
|
|
|
|
|
|
# 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"
|
|
|
|
}
|