blob: ca8ae60b33477622972d3bca0fbc665a1850668c (
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
|
# Contributor: Christian Heusel <gromit@archlinux.org>
pkgname=keycloak-hcaptcha
pkgver=1.0.1
pkgrel=2
pkgdesc='Keycloak deployment that provides similar functionality to Google reCaptcha, but with a more privacy friendly provider named hCaptcha.'
url="https://github.com/p08dev/keycloak-hcaptcha"
arch=('any')
license=('MIT')
depends=("java-runtime")
makedepends=("jdk-openjdk" 'maven' 'keycloak' 'git')
_commit=7be998a4bf7333ab2af8e99d41ee208e9c0f8d2a
source=("git+https://github.com/p08dev/keycloak-hcaptcha.git#commit=${_commit}")
sha256sums=('SKIP')
pkgver() {
cd "$pkgname"
git describe --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd ${pkgname}
mvn install
}
check() {
cd ${pkgname}
mvn test
}
package() {
cd ${pkgname}
install -d "${pkgdir}/usr/share/java/keycloak/providers/"
install -Dm644 "target/$pkgname.jar" "${pkgdir}/usr/share/java/${pkgname}/$pkgname-${pkgver}.jar"
ln -s "/usr/share/java/${pkgname}/${pkgname}-${pkgver}.jar" "${pkgdir}/usr/share/java/keycloak/providers/${pkgname}-${pkgver}.jar"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|