summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 52f1602e103a6fce83dd8bfc809d05502d064ee6 (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: j.r <j.r@jugendhacker.de>
_pkgname=caas
pkgname=$_pkgname-git
pkgver=r317.7229815
pkgrel=1
pkgdesc="A web service for checking and visualising compliance status of XMPP servers."
arch=('any')
url="https://compliance.conversations.im/"
license=('BSD-3-Clause')
depends=('java-runtime>=11' 'bash')
makedepends=('git' 'java-environment>=11' 'maven')
provides=("$_pkgname-web" "$_pkgname-app")
conflicts=("$_pkgname")
source=('git+https://codeberg.org/iNPUTmice/caas.git' 'caas-web' 'caas-app')
md5sums=('SKIP'
         '91c4ab642924e048946ccc867a5c2a5b'
         '0fb28640305ef611f32efad761a97810')

pkgver() {
	cd "$srcdir/$_pkgname"

	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd "$srcdir/$_pkgname"
	mvn package
}

package() {
	cd "$srcdir/$_pkgname"
	install -Dm644 caas-web/target/caas-web.jar $pkgdir/usr/share/java/$_pkgname-web/caas-web.jar
	install -Dm644 caas-app/target/caas-app.jar $pkgdir/usr/share/java/$_pkgname-app/caas-app.jar
	install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE

	cd "$srcdir"
	install -Dm755 caas-web $pkgdir/usr/bin/caas-web
	install -Dm755 caas-app $pkgdir/usr/bin/caas-app
}