~dricottone/huttese-apk

ref: 7d0e4e96a309d89a8b6ec524ac2255f3ed48c97a huttese-apk/sr.ht/gamja/APKBUILD -rw-r--r-- 1.1 KiB
7d0e4e96 — Simon Ser gamja: upgrade and use new build system 3 years ago
                                                                                
36541a8e Simon Ser
7d0e4e96 Simon Ser
36541a8e Simon Ser
02303f7c Drew DeVault
36541a8e Simon Ser
7d0e4e96 Simon Ser
36541a8e Simon Ser
7d0e4e96 Simon Ser
36541a8e Simon Ser
7d0e4e96 Simon Ser
36541a8e Simon Ser
7d0e4e96 Simon Ser
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
37
# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=gamja
pkgver=1.0.0_beta1-r12
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=c4c0a771625376649620f0600b945a0f2f985937
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 --include=dev
	npm run build
}

package() {
	local webroot="$pkgdir"/usr/share/webapps/gamja

	install -d "$webroot" "$pkgdir"/usr/share/doc/gamja
	cp -r "$builddir"/dist/* "$webroot"
	install -Dm644 "$builddir"/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="
8ee19de44b9566f61ef0cd83a6a06e6a72f380d380ca3779fc1c45a4962faef1ecfa04010a2d0cfa1110276f2f6f554ef18c72b563b17bb392755b2ab0064472  gamja-1.0.0_beta1-r12.tar.gz
"