archrelease: copy trunk to extra-x86_64
[arch-packages.git] / java-commons-daemon / trunk / PKGBUILD
blob4179a2301a9476f2e3e0c0faea0555ac01e1d483
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.2.4
10 pkgrel=2
11 arch=(x86_64)
12 url=https://commons.apache.org/proper/commons-daemon/
13 license=(APACHE)
14 _tag=0373c020f233236ca7acf4fa4ceef31e27b7cb70
15 source=(git+https://github.com/apache/commons-daemon.git#tag=${_tag})
16 b2sums=(SKIP)
17 makedepends=(
18   docbook2x
19   docbook-xsl
20   git
21   java-environment
22   maven
25 prepare() {
26   cd commons-daemon/src/native/unix
27   support/buildconf.sh
30 pkgver() {
31   cd commons-daemon
32   git describe --tags | sed 's/^rel\/commons-daemon-//; s/_RC.*$//; s/_/./g'
35 build() {
36   cd commons-daemon
37   mvn clean package
38   cd src/native/unix
39   ./configure \
40     --with-java=/usr/lib/jvm/default
41   make
42   db2x_docbook2man man/jsvc.1.xml
45 package_java-commons-daemon() {
46   pkgdesc='Alternative invocation mechanism for unix-daemon-like java code'
47   depends=(java-runtime)
49   cd commons-daemon
50   install -Dm 644 target/commons-daemon-${pkgver}.jar -t "${pkgdir}"/usr/share/java/
51   ln -s commons-daemon-${pkgver}.jar "${pkgdir}"/usr/share/java/commons-daemon.jar
54 package_java-jsvc() {
55   pkgdesc='Apache application for making Java applications run on UNIX more easily'
56   depends=(
57     java-commons-daemon
58     libcap
59   )
61   cd commons-daemon/src/native/unix
62   install -Dm 755 jsvc -t "${pkgdir}"/usr/bin/
63   install -Dm 644 JSVC.1 -t "${pkgdir}"/usr/share/man/man1/
66 # vim: ts=2 sw=2 et: