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-webos-tv
|
2021-10-05 06:54:35 +00:00
|
|
|
pkgver=2.2.5
|
2021-07-24 10:00:43 +00:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="Homebridge plugin for LG webOS TVs"
|
|
|
|
arch=('any')
|
|
|
|
url="https://github.com/merdok/homebridge-webos-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:54:35 +00:00
|
|
|
sha512sums=('83f6d8777ab5979799d9d2638d304bb0514a471d5c0a492b8b55f6f74428eba389ee9b82f0b39ce7813af7215a633ae8304d4ce5b91ca45e26ab0c72fe462722')
|
|
|
|
b2sums=('fd159d415a87606c602ba7c8d89a8e9c2b3a50373b426b74cd02a37cdf41290b8318ac129744490c31ea1a9c7bf7c64eb0dcdfe0c08c6c0ad4b2c1f3597408e1')
|
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:54:35 +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
|
|
|
}
|