aboutsummaryrefslogtreecommitdiffstats
path: root/testing/gamja/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'testing/gamja/APKBUILD')
-rw-r--r--testing/gamja/APKBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/testing/gamja/APKBUILD b/testing/gamja/APKBUILD
new file mode 100644
index 00000000000..3958f2da672
--- /dev/null
+++ b/testing/gamja/APKBUILD
@@ -0,0 +1,35 @@
+# Contributor: Michał Polański <michal@polanski.me>
+# Maintainer: Michał Polański <michal@polanski.me>
+pkgname=gamja
+pkgver=1.0.0_beta9
+_pkgver=v${pkgver/_beta/-beta.}
+pkgrel=0
+pkgdesc="Simple IRC web client"
+url="https://sr.ht/~emersion/gamja/"
+license="AGPL-3.0"
+arch="noarch"
+makedepends="npm"
+subpackages="$pkgname-doc"
+source="$pkgname-$pkgver.tar.gz::https://git.sr.ht/~emersion/gamja/archive/$_pkgver.tar.gz"
+builddir="$srcdir/$pkgname-$_pkgver"
+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 "{}" | install -Dm644 /dev/stdin "$pkgdir"/etc/gamja/config.json
+ ln -s /etc/gamja/config.json "$pkgdir"/usr/share/webapps/gamja/config.json
+}
+
+sha512sums="
+2759f727a89979321f31d61d5194c12dfdb5d67143532188b9995abac079a0d4ce7bb0e5b092ddf1d2271a3ae85470c6469e11b3a9804ac8cbce79aef75c9281 gamja-1.0.0_beta9.tar.gz
+"