~dricottone/huttese-apk

ref: 137e5a4523f565f191617c72ee8b9c7d976ca800 huttese-apk/sr.ht/gamja/APKBUILD -rw-r--r-- 1.6 KiB
137e5a45 — Simon Ser gamja: upgrade 2 years ago
                                                                                
36541a8e Simon Ser
137e5a45 Simon Ser
d1e4e603 Drew DeVault
36541a8e Simon Ser
02303f7c Drew DeVault
36541a8e Simon Ser
137e5a45 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
137e5a45 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_beta4-r16
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=8507500d74eb5fdc2f94432f897cd923d8dc4028
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="
51aa19cdebc6e9916e1f6c4712cca3bf6f52047026ff376de1810d7ddccaf0eae1b9515dca886729b25e703b2b5673eb68f0aaa3ee389cffd9c7a20a33f07b10  gamja-1.0.0_beta4-r16.tar.gz
7ebb5050f197881169ded60f16af23e9adc454b8f607192948ca8a4d36452daaec55aa85b938c61b58bc70fcbbe9f10a99c0f8d436374562edd448df9c63c34a  0001-Add-custom-chat.sr.ht-noscript-page.patch
d76b6f974e5c454621c5b161580ecfa87d366c816d490c2e455ba075823b7002fbea283614ade92c9ac12810945292b1abf0d5daa9fec6ac508ee35d94326d53  0001-Add-sourcehut-branding-to-chat.sr.ht.patch
"