~dricottone/huttese-apk

ref: 8dbe641e70eb3048835e86fa6b9dcb4ad4a47a26 huttese-apk/sr.ht/gamja/APKBUILD -rw-r--r-- 1.6 KiB
8dbe641e — Drew DeVault py3-gitlab: upgrade to 3.1.1 2 years ago
                                                                                
36541a8e Simon Ser
317df38a Simon Ser
d1e4e603 Drew DeVault
36541a8e Simon Ser
02303f7c Drew DeVault
36541a8e Simon Ser
317df38a 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
317df38a 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_beta1-r14
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=f6895fed323761c1264d365850a3170631147aff
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="
a3defbb1d43f7b468f5299334da963e823c660973407431c1e0fd60e54701b9abe5e26e4305fa906eb348c762dc280755e9e9c7adf8fb9dd6273f45c35a25a6a  gamja-1.0.0_beta1-r14.tar.gz
7ebb5050f197881169ded60f16af23e9adc454b8f607192948ca8a4d36452daaec55aa85b938c61b58bc70fcbbe9f10a99c0f8d436374562edd448df9c63c34a  0001-Add-custom-chat.sr.ht-noscript-page.patch
d76b6f974e5c454621c5b161580ecfa87d366c816d490c2e455ba075823b7002fbea283614ade92c9ac12810945292b1abf0d5daa9fec6ac508ee35d94326d53  0001-Add-sourcehut-branding-to-chat.sr.ht.patch
"