summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ad0a7b4befd74d217265d1bd2f2acd2e1a0a9e22 (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=r853.af69955
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 --legacy-peer-deps
  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"
}