mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-01 14:52:14 +01:00
36 lines
1.1 KiB
Plaintext
36 lines
1.1 KiB
Plaintext
# Contributor: Michał Polański <michal@polanski.me>
|
|
# Maintainer: Michał Polański <michal@polanski.me>
|
|
pkgname=gamja
|
|
pkgver=1.0.0_beta8
|
|
_pkgver=v${pkgver/_beta/-beta.}
|
|
pkgrel=0
|
|
pkgdesc="Simple IRC web client"
|
|
url="https://sr.ht/~emersion/gamja/"
|
|
license="AGPL-3.0"
|
|
arch="noarch"
|
|
makedepends="npm"
|
|
subpackages="$pkgname-doc"
|
|
source="$pkgname-$pkgver.tar.gz::https://git.sr.ht/~emersion/gamja/archive/$_pkgver.tar.gz"
|
|
builddir="$srcdir/$pkgname-$_pkgver"
|
|
options="!check" # no test suite
|
|
|
|
build() {
|
|
npm install --production
|
|
}
|
|
|
|
package() {
|
|
local webroot="$pkgdir"/usr/share/webapps/gamja
|
|
|
|
install -d "$webroot" "$pkgdir"/usr/share/doc/gamja
|
|
cp -r "$builddir"/* "$webroot"
|
|
mv "$webroot"/README.md "$pkgdir"/usr/share/doc/gamja
|
|
|
|
# default empty config
|
|
echo "{}" | install -Dm644 /dev/stdin "$pkgdir"/etc/gamja/config.json
|
|
ln -s /etc/gamja/config.json "$pkgdir"/usr/share/webapps/gamja/config.json
|
|
}
|
|
|
|
sha512sums="
|
|
ae99cb4ed2261b6bb529e376564ba3ce8a4d6a6a33f86b377b5593bf18cb02e1b615a48252fd544882f90bbaaa4de65ee38597b9bf8a905ff59939117728bccc gamja-1.0.0_beta8.tar.gz
|
|
"
|