Skip to content
Snippets Groups Projects

testing/cinny-web: new aport

Merged Lindsay Zhou requested to merge lindsay/aports:cinny-web into master
+ 35
0
# Contributor: Lindsay Zhou <i@lin.moe>
# Maintainer: Lindsay Zhou <i@lin.moe>
_pkgname=cinny
pkgname="$_pkgname"-web
pkgver=2.2.6
pkgrel=0
pkgdesc="A Matrix client focusing primarily on simple, elegant and secure interface. (website)"
url="https://cinny.in/"
arch="noarch"
license="AGPL3"
makedepends="npm"
source="
$_pkgname-$pkgver.tar.gz::https://github.com/cinnyapp/cinny/archive/v$pkgver.tar.gz
"
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="
b51d03f6917e1ec92766fabd933c1b060fe4dc3b0c7ed6df35d3910897d5797feb26ac6de90d6821cada8ab315eff14bc4c6ccea413cb0ae920d06bb2f2081f3 cinny-2.2.6.tar.gz
"
Loading