blob: e82d0d85993350782a8e6f41011c3eedfc75e597 (
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
33
34
35
36
37
38
39
|
# Maintainer: Thorben Günther <echo YWRtaW5AeGVucm94Lm5ldAo= | base64 -d>
pkgname=gamja-git
_pkgname=gamja
pkgver=v1.0.0.beta.1.r85.g3e309e9
pkgrel=1
pkgdesc='Simple IRC web client'
arch=('any')
url="https://sr.ht/~emersion/gamja/"
license=('AGPL3')
makedepends=('npm' 'git')
provides=('gamja')
conflicts=('gamja')
source=("$_pkgname::git+https://git.sr.ht/~emersion/${_pkgname}")
sha256sums=('SKIP')
backup=('usr/share/webapps/gamja/config.json')
pkgver() {
cd "$srcdir/$_pkgname"
(
set -o pipefail
git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
build() {
cd "$srcdir/$_pkgname"
npm install --include=dev
npm run build
cd dist
echo "{}" > config.json
}
package() {
install -dm755 "$pkgdir"/usr/share/webapps/gamja/
cp -r "$srcdir/$_pkgname"/dist/* "$pkgdir"/usr/share/webapps/gamja
}
|