~dricottone/huttese-apk

ref: ba2034f3754bb0815ccaa17fa9de0b6eec090f96 huttese-apk/sr.ht/gamja/APKBUILD -rw-r--r-- 1.6 KiB
ba2034f3 — Simon Ser gamja: upgrade to v1.0.0_beta6 2 years ago
                                                                                
36541a8e Simon Ser
ba2034f3 Simon Ser
d1e4e603 Drew DeVault
36541a8e Simon Ser
02303f7c Drew DeVault
36541a8e Simon Ser
ba2034f3 Simon Ser
95c01da6 Simon Ser
d1e4e603 Drew DeVault
95c01da6 Simon Ser
36541a8e Simon Ser
7d0e4e96 Simon Ser
36541a8e Simon Ser
7d0e4e96 Simon Ser
36541a8e Simon Ser
ba2034f3 Simon Ser
95c01da6 Simon Ser
d1e4e603 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
37
38
39
40
41
42
43
# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=gamja
pkgver=1.0.0_beta6
pkgrel=1
pkgdesc="Simple IRC web client"
url="https://sr.ht/~emersion/gamja/"
license="AGPL-3.0"
arch="all"
makedepends="npm"
subpackages="$pkgname-doc"
githash=1bcd9d3607767bcc4edefbe1fc39de0676a5afc1
source="
	$pkgname-$pkgver.tar.gz::https://git.sr.ht/~emersion/gamja/archive/$githash.tar.gz
	0001-Add-custom-chat.sr.ht-noscript-page.patch
	0001-Add-sourcehut-branding-to-chat.sr.ht.patch
"
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="
097e6cb0e98644bbecce22e4dcdd52414269ece8ff88dc1c6fd37ae28a7ac81a4dbfbd4d134454988f2ae72ca1c9992db3e146a17d0550badc1dac4bc88b6e11  gamja-1.0.0_beta6.tar.gz
7ebb5050f197881169ded60f16af23e9adc454b8f607192948ca8a4d36452daaec55aa85b938c61b58bc70fcbbe9f10a99c0f8d436374562edd448df9c63c34a  0001-Add-custom-chat.sr.ht-noscript-page.patch
d76b6f974e5c454621c5b161580ecfa87d366c816d490c2e455ba075823b7002fbea283614ade92c9ac12810945292b1abf0d5daa9fec6ac508ee35d94326d53  0001-Add-sourcehut-branding-to-chat.sr.ht.patch
"