OCaml 4.14.0 rebuild
[arch-packages.git] / java-commons-daemon / repos / extra-x86_64 / PKGBUILD
blob8ef9e1d3958e6c2818f890b9f6297feb9b7f5d54
1 # Maintainer: Maxime Gauduin <alucryd@archlinux.org>
2 # Contributor: Guillaume ALAUX <guillaume@archlinux.org>
4 pkgbase=java-commons-daemon
5 pkgname=(
6   java-commons-daemon
7   java-jsvc
9 pkgver=1.3.1
10 pkgrel=1
11 arch=(x86_64)
12 url=https://commons.apache.org/proper/commons-daemon/
13 license=(APACHE)
14 _tag=466cc9a2442412dbb25dc5dad803982a7f864264
15 source=(git+https://github.com/apache/commons-daemon.git#tag=${_tag})
16 b2sums=(SKIP)
17 makedepends=(
18   docbook2x
19   docbook-utils
20   docbook-xsl
21   git
22   java-environment
23   maven
26 prepare() {
27   cd commons-daemon/src/native/unix
28   support/buildconf.sh
31 pkgver() {
32   cd commons-daemon
33   git describe --tags | sed 's/commons-daemon-//'
36 build() {
37   cd commons-daemon
38   mvn clean package
39   cd src/native/unix
40   ./configure \
41     --with-java=/usr/lib/jvm/default
42   make
43   db2x_docbook2man man/jsvc.1.xml
46 package_java-commons-daemon() {
47   pkgdesc='Alternative invocation mechanism for unix-daemon-like java code'
48   depends=(java-runtime)
50   cd commons-daemon
51   install -Dm 644 target/commons-daemon-${pkgver}.jar -t "${pkgdir}"/usr/share/java/
52   ln -s commons-daemon-${pkgver}.jar "${pkgdir}"/usr/share/java/commons-daemon.jar
55 package_java-jsvc() {
56   pkgdesc='Apache application for making Java applications run on UNIX more easily'
57   depends=(
58     java-commons-daemon
59     libcap
60   )
62   cd commons-daemon/src/native/unix
63   install -Dm 755 jsvc -t "${pkgdir}"/usr/bin/
64   install -Dm 644 JSVC.1 -t "${pkgdir}"/usr/share/man/man1/
67 # vim: ts=2 sw=2 et: