[arch-commits] Commit in java-commons-daemon/repos (2 files)
Maxime Gauduin
alucryd at archlinux.org
Sun Sep 20 15:04:43 UTC 2020
Date: Sunday, September 20, 2020 @ 15:04:43
Author: alucryd
Revision: 396350
archrelease: copy trunk to testing-x86_64
Added:
java-commons-daemon/repos/testing-x86_64/
java-commons-daemon/repos/testing-x86_64/PKGBUILD
(from rev 396349, java-commons-daemon/trunk/PKGBUILD)
----------+
PKGBUILD | 72 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 72 insertions(+)
Copied: java-commons-daemon/repos/testing-x86_64/PKGBUILD (from rev 396349, java-commons-daemon/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2020-09-20 15:04:43 UTC (rev 396350)
@@ -0,0 +1,72 @@
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+# Contributor: Guillaume ALAUX <guillaume at archlinux.org>
+
+pkgbase=java-commons-daemon
+pkgname=(
+ java-commons-daemon
+ java-jsvc
+)
+pkgver=1.2.3
+pkgrel=1
+arch=(x86_64)
+url=https://commons.apache.org/proper/commons-daemon/
+license=(APACHE)
+_tag=f42d76aaa22df5f6bfa2f745ba2985bc47fe28d1
+source=(git+https://github.com/apache/commons-daemon.git#tag=${_tag})
+b2sums=(SKIP)
+makedepends=(
+ docbook2x
+ docbook-xsl
+ git
+ java-environment
+ maven
+)
+
+pkgver() {
+ cd commons-daemon
+
+ git describe --tags | sed 's/^COMMONS_DAEMON_//; s/_/./g'
+}
+
+prepare() {
+ cd commons-daemon/src/native/unix
+ support/buildconf.sh
+}
+
+build() {
+ cd commons-daemon
+
+ mvn clean package
+
+ cd src/native/unix
+
+ ./configure \
+ --with-java=/usr/lib/jvm/default
+ make
+ docbook2man man/jsvc.1.xml
+}
+
+package_java-commons-daemon() {
+ pkgdesc='Alternative invocation mechanism for unix-daemon-like java code'
+ depends=(java-runtime)
+
+ cd commons-daemon
+
+ install -Dm 644 target/commons-daemon-${pkgver}.jar -t "${pkgdir}"/usr/share/java/
+ ln -s commons-daemon-${pkgver}.jar "${pkgdir}"/usr/share/java/commons-daemon.jar
+}
+
+package_java-jsvc() {
+ pkgdesc='Apache application for making Java applications run on UNIX more easily'
+ depends=(
+ java-commons-daemon
+ libcap
+ )
+
+ cd commons-daemon/src/native/unix
+
+ install -Dm 755 jsvc -t "${pkgdir}"/usr/bin/
+ install -Dm 644 JSVC.1 -t "${pkgdir}"/usr/share/man/man1/
+}
+
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list