blob: 603fffab3d22833dd9f39b3ace1a2c4630acb813 (
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
|
# Maintainer: Andy Bao <contact@andybao.me>
_pkgname=cinny-web
pkgname="${_pkgname}-git"
pkgver=r254.5b0f95f
pkgrel=1
pkgdesc="Yet another matrix client — web version"
arch=('any')
url="https://github.com/ajbura/cinny"
license=('MIT')
makedepends=('git' 'npm')
source=("${_pkgname}::git+https://github.com/ajbura/cinny.git#branch=dev")
sha256sums=("SKIP")
pkgver() {
cd "$_pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/$_pkgname"
npm install
npm run build
}
package() {
cd "$srcdir/$_pkgname"
install -d "$pkgdir/usr/share/webapps/cinny"
cp -r dist/* "$pkgdir/usr/share/webapps/cinny"
chmod -R 0755 "$pkgdir/usr/share/webapps/cinny"
}
|