~dricottone/huttese-apk

ref: 02303f7c5d8f1117b342d8ea366011b784b7e787 huttese-apk/sr.ht/gamja/APKBUILD -rw-r--r-- 1.1 KiB
02303f7c — Drew DeVault gamja: set arch=all 3 years ago
                                                                                
36541a8e Simon Ser
02303f7c Drew DeVault
36541a8e Simon Ser
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=gamja
pkgver=1.0.0_beta1-r9
pkgrel=0
pkgdesc="Simple IRC web client"
url="https://sr.ht/~emersion/gamja/"
license="AGPL-3.0"
arch="all"
makedepends="npm"
subpackages="$pkgname-doc"
githash=a890665775910143c39bc044714141b3853d1e0a
source="$pkgname-$pkgver.tar.gz::https://git.sr.ht/~emersion/gamja/archive/$githash.tar.gz"
builddir="$srcdir/$pkgname-$githash"
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 "{}" >config.json
	install -Dm644 config.json "$pkgdir"/etc/gamja/config.json
	ln -s /etc/gamja/config.json "$pkgdir"/usr/share/webapps/gamja/config.json
}

sha512sums="
012f01f38f855c595a25e231a49f536da03aae47c2a0fac9df18657f541d4b9311239c23887121c4857364eff17c163a94eaa2f0dda0a8d45a652529b7085836  gamja-1.0.0_beta1-r9.tar.gz
"