mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-04 08:55:20 +02:00
35 lines
982 B
Text
35 lines
982 B
Text
# Contributor: Bart Ribbers <bribbers@disroot.org>
|
|
# Maintainer: Chris Kankiewicz <chris@chriskankiewicz.com>
|
|
pkgname=snapweb
|
|
pkgver=0.7.0
|
|
pkgrel=0
|
|
pkgdesc="Web interface for Snapcast"
|
|
url="https://github.com/badaix/snapweb"
|
|
# armhf, x86, s390x, ppc64le and loongarch64 are blocked by rollup node dependency
|
|
# armv7 and riscv64 are supported but not with Musl
|
|
arch="noarch !armhf !armv7 !x86 !s390x !ppc64le !riscv64 !loongarch64"
|
|
license="GPL-3.0-only"
|
|
makedepends="
|
|
npm
|
|
vips-dev
|
|
"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/badaix/snapweb/archive/refs/tags/v$pkgver.tar.gz"
|
|
# net required to download node modules
|
|
# No tests
|
|
options="net !check"
|
|
|
|
build() {
|
|
npm ci
|
|
npm run build
|
|
}
|
|
|
|
package() {
|
|
local webroot="$pkgdir"/usr/share/snapweb
|
|
install -d "$webroot"
|
|
|
|
cp -r "$builddir"/dist/* "$webroot"
|
|
}
|
|
|
|
sha512sums="
|
|
0b3e8cf5a8b1beb3852499b790253cbe8242860698ce7651eef1467b793a9b4c5c95eb9ad37b8c3e77a73fc87e9e545b66b61c30207bb82afbfd0051913ee200 snapweb-0.7.0.tar.gz
|
|
"
|