blob: ffecb26dd8ca5cfd89441cf32f0b0dad6497ba49 (
plain)
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
|
# Maintainer: Victor Golovanenko <drygdryg2014 at yandex dot com>
_pkgbase=synapse-admin-etke
pkgname=${_pkgbase}-git
pkgver=0.10.3.etke28.r0.gb925c63
pkgrel=1
pkgdesc="A Matrix administration panel using react-admin (etke.cc fork)"
arch=(any)
license=('Apache-2.0')
makedepends=(nodejs yarn git)
optdepends=('nginx: to serve the web application')
url=https://github.com/etkecc/synapse-admin
source=("${_pkgbase}::git+${url}")
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/${_pkgbase}"
git describe --long --tags --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "$srcdir/${_pkgbase}"
yarn install
yarn build --base=./
}
package() {
cd "$srcdir/${_pkgbase}"
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${_pkgbase}/LICENSE"
mkdir -p "${pkgdir}/usr/share/webapps/${_pkgbase}"
cp -r dist/* "${pkgdir}/usr/share/webapps/${_pkgbase}/"
}
|