blob: e48920d6bc7eb716421fa014f469cc058e6ea7fa (
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: Richard Stöckl <richard.stoeckl@aon.at>
pkgname=barrel-git
pkgver=1788686b
pkgrel=1
pkgdesc="backend of the Musikverein Leopoldsdorf"
arch=('any')
url="https://github.com/mvl-at/barrel"
license=('GPL2')
provides=('barrel')
depends=('java-runtime>=16')
makedependens=('git' 'java-environment>=16')
source=('git+http://github.com/mvl-at/barrel.git'
'barrel.service'
'barrel.sysusers')
sha256sums=('SKIP'
'042b1ff348dfdd705d1dfe9bfb68011e2f039509cb7991526c5da5111c772fc9'
'668449908de123446e539b2caefe12486af14b906cffb1bd0799eaecabca11c0')
backup=('etc/barrel/barrel.yml')
pkgver() {
cd "${srcdir}/barrel"
git rev-parse HEAD | cut -c 1-8
}
build() {
cd "${srcdir}/barrel"
rm -rf "${srcdir}"/barrel/build/libs/barrel*.jar
./gradlew bootJar
}
package() {
install -Dm744 -o 926 "${srcdir}"/barrel/build/libs/barrel*.jar "${pkgdir}/usr/share/barrel/barrel.jar"
install -Dm600 -o 926 "${srcdir}/barrel/src/main/resources/application.yml" "${pkgdir}/etc/barrel/barrel.yml"
install -Dm644 "${srcdir}/barrel.sysusers" "${pkgdir}/usr/lib/sysusers.d/barrel.conf"
install -Dm644 "${srcdir}/barrel.service" -t "${pkgdir}/usr/lib/systemd/system"
}
|