aports/testing/cinny-web/APKBUILD
2025-06-05 11:59:04 +00:00

39 lines
1.3 KiB
Text

# Contributor: Lindsay Zhou <i@lin.moe>
# Maintainer: Lindsay Zhou <i@lin.moe>
maintainer="Lindsay Zhou <i@lin.moe>"
_pkgname=cinny
pkgname="$_pkgname"-web
pkgver=4.8.0
pkgrel=0
pkgdesc="A Matrix client focusing primarily on simple, elegant and secure interface. (website)"
url="https://cinny.in/"
# limited by nodejs module rollup
arch="x86_64 aarch64"
license="AGPL-3.0-or-later "
makedepends="npm"
source="
$_pkgname-$pkgver.tar.gz::https://github.com/cinnyapp/cinny/archive/v$pkgver.tar.gz
use-hash-router-default.patch
"
builddir="$srcdir/$_pkgname-$pkgver"
options="!check" # no test suite
build() {
export NODE_OPTIONS="--max-old-space-size=4000"
npm ci
npm run build
}
package() {
local webroot="$pkgdir"/usr/share/webapps/cinny
install -d "$webroot"
cp -r "$builddir"/dist/* "$webroot"
install -Dm644 "$builddir"/dist/config.json "$pkgdir"/etc/cinny/config.json
ln -sf /etc/cinny/config.json "$pkgdir"/usr/share/webapps/cinny/config.json
}
sha512sums="
63906df0c7be241e168eea668956dd7653229966a93291ba4dcb4f400d7fb9e0329f46663a6bf1156945d094b9b9b6c94671958cefc4c2de41c181ec10720a44 cinny-4.8.0.tar.gz
d0e71e0b9874b13fb2a76c9ebf3a410f76a002e42d171c30cad887cff5317c3f84080f00f85b9b431c0321da221956295525d4bc74d00451a07680ebf4813d2c use-hash-router-default.patch
"