blob: 1bc7f05c405efc90f291eeaa21c811ef18bafb4d (
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
40
41
42
43
44
45
46
47
48
49
50
|
# Maintainer: Harvey Tindall <hrfee@protonmail.ch>
pkgname=jfa-go-git
_pkgname=jfa-go
pkgver=r221.ffc6257
pkgrel=1
pkgdesc="A web app for managing users on Jellyfin"
arch=("x86_64")
url="https://github.com/hrfee/jfa-go"
license=('MIT')
makedepends=('go>=1.14' 'python>=3.6.0-1' 'nodejs' 'npm' 'git')
checkdepends=()
optdepends=()
provides=("jfa-go")
conflicts=("jfa-go")
replaces=()
backup=()
options=()
install=
changelog=
source=("${pkgname}::git+https://github.com/hrfee/jfa-go.git")
noextract=()
md5sums=(SKIP)
validpgpkeys=()
pkgver() {
cd $pkgname
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd ${pkgname}
make configuration npm email version swagger
}
build() {
cd ${pkgname}
make typescript compile
}
package() {
cd ${pkgname}
make copy
install -d "$pkgdir"/opt
make install DESTDIR="$pkgdir"/opt
mkdir -p "$pkgdir"/usr/bin
chown -R root "$pkgdir"/opt/$_pkgname/
chmod 755 "$pkgdir"/opt/$_pkgname/$_pkgname
ln -sf /opt/$_pkgname/$_pkgname "$pkgdir"/usr/bin/$_pkgname
install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$_pkgname
}
|