user/mumble-web: clean-up APKBUILD

This commit is contained in:
Antoine Martin 2024-12-27 21:59:19 -05:00
parent a0a71388b1
commit ebf12bda8f
Signed by: forge
GPG key ID: D62A472A4AA7D541

View file

@ -1,16 +1,14 @@
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
pkgname=mumble-web
pkgver=0.5.1
pkgrel=0
pkgrel=1
pkgdesc="An HTML5 Mumble client - stable"
arch='noarch'
url="https://github.com/johni0702/mumble-web"
license='custom:ISC'
license='ISC'
makedepends='npm jq'
source="https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz LICENSE"
noextract="$pkgname-$pkgver.tgz"
source="https://registry.npmjs.org/mumble-web/-/mumble-web-$pkgver.tgz"
subpackages="$pkgname-doc"
options="!check"
@ -28,16 +26,10 @@ package() {
mv "$tmppackage" "$pkgjson"
chmod 644 "$pkgjson"
# Install license since the package doesn't include it
install -Dm 644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
# Move README to doc
install -dm 755 $pkgdir/usr/share/doc/$pkgname/
mv "$pkgdir/usr/lib/node_modules/$pkgname/README.md" "$pkgdir/usr/share/doc/$pkgname/README.md"
# npm gives ownership of ALL FILES to build user
# https://bugs.archlinux.org/task/63396
chown -R root:root "${pkgdir}"
}
sha512sums="87de66921c5ac00cfd91c6dde064d3427dbbc979c6e94f18cc3e84e77799e9f2bba361818f08ceedc08ded91865decde24da306e6e3d74f3a42ec5d231105bf6 mumble-web-0.5.1.tgz
a9e2bbe2ae661a0a39852414100ae3b25f5e5915c0d3f6eda4bd17ce3fbc8fc48418315a936d5305212ca4a550ddb1054206a450d1ffbcdb6281d59402afa8ef LICENSE"
sha512sums="
87de66921c5ac00cfd91c6dde064d3427dbbc979c6e94f18cc3e84e77799e9f2bba361818f08ceedc08ded91865decde24da306e6e3d74f3a42ec5d231105bf6 mumble-web-0.5.1.tgz
"