blob: f2c33ad7f9c36709d0d9991d756cc9cadab8969a (
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
51
|
# Maintainer: Joan Figueras <ffigue at gmail dot com>
# Contributor: Black_Codec <orso.f.regna@gmail.com>
pkgname=guacamole-client
pkgver=1.5.5
pkgrel=1
pkgdesc="Java and Maven components of Guacamole"
arch=('any')
url="https://guacamole.apache.org/"
license=('GPL3')
replaces=('guacamole')
depends=('java-runtime' 'java-environment<=19')
makedepends=('maven' 'java-environment-openjdk<=19')
optdepends=('tomcat8: open source Java Servlet container'
'tomcat9: open source Java Servlet container')
source=("http://apache.org/dyn/closer.cgi?action=download&filename=guacamole/${pkgver}/source/${pkgname}-${pkgver}.tar.gz"
"guacamole.properties")
install=guacamole-client.install
md5sums=('91cf12ae3e3d5534053fe08ab6315888'
'1f3ec0a32cc3c6b4f7aeb8a3b2e7531b')
backup=('etc/guacamole/guacamole.properties' 'etc/guacamole/user-mapping.xml')
export JAVA_HOME=/usr/lib/jvm/default
export LC_ALL=C
export LANG=en-US.UTF-8
prepare() {
if [ "$(archlinux-java get | grep -Po '\d+')" -gt "17" ]; then
echo "ERROR: Java environment needs to be set to any <=17. Java 8 and 11 are fine."
exit 1
fi
cd "$srcdir"/$pkgname-$pkgver
#mkdir -p guacamole/src/main/frontend/dist
}
build() {
cd "$srcdir"/$pkgname-$pkgver
mvn -DskipTests=true package
#mvn package
}
package() {
cd "$srcdir"/$pkgname-$pkgver
mkdir -m 775 -p "$pkgdir"/usr/share/guacamole/
mkdir -p "$pkgdir"/etc/guacamole/
install -D ${pkgname%-*}/target/${pkgname%-*}-$pkgver.war "$pkgdir"/usr/share/guacamole/guacamole.war
install -D ${pkgname%-*}/doc/example/user-mapping.xml "$pkgdir"/etc/guacamole/
install -D "$srcdir"/guacamole.properties "$pkgdir"/etc/guacamole/
}
|