2021-07-24 10:00:43 +00:00
|
|
|
# Maintainer: George Rawlinson <george@rawlinson.net.nz>
|
|
|
|
|
2021-10-07 08:04:00 +00:00
|
|
|
pkgname=homebridge-denon-tv
|
2021-10-05 06:57:32 +00:00
|
|
|
pkgver=3.12.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')
|
2021-10-07 08:04:00 +00:00
|
|
|
source=("$pkgname-$pkgver.tar.gz::https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz")
|
|
|
|
noextract=("$pkgname-$pkgver.tar.gz")
|
2021-10-05 06:57:32 +00:00
|
|
|
sha512sums=('ce775535983085be213cc3a4bc76d6f6fbfb9b9fb815936bebf4b28ae19b1694852ef50e8c1a50332012ba74104e2eb85ff143c397461113a06748cac7f648e3')
|
|
|
|
b2sums=('b37379611559e740107416f4a090a4a08b399918e1b75b3cd7a1890d7f46b3808f35c4b124db81d34513edb1042b951dedef1059340e66e335f3008807c64911')
|
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)
|
|
|
|
|
2021-10-05 06:57:32 +00:00
|
|
|
npm install \
|
|
|
|
--global \
|
|
|
|
--prefix "$pkgdir/usr" \
|
|
|
|
"${NPM_FLAGS[@]}" \
|
2021-10-07 08:04:00 +00:00
|
|
|
"$pkgname-$pkgver.tar.gz"
|
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" \
|
2021-10-07 08:04:00 +00:00
|
|
|
"$pkgdir/usr/lib/node_modules/$pkgname/LICENSE"
|
2021-07-24 10:00:43 +00:00
|
|
|
}
|