PKGBUILDs/extra/java-commons-daemon/PKGBUILD

63 lines
1.8 KiB
Bash
Raw Normal View History

2015-07-24 00:52:00 +00:00
# Maintainer: Guillaume ALAUX <guillaume@archlinux.org>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - patch for aarch64
pkgname=('java-commons-daemon' 'java-jsvc')
pkgbase=java-commons-daemon
pkgver=1.0.15
2018-11-28 21:51:10 +00:00
pkgrel=4
arch=('x86_64')
2016-11-01 18:07:36 +00:00
url='https://commons.apache.org/proper/commons-daemon/'
2015-07-24 00:52:00 +00:00
license=('APACHE')
_libname=commons-daemon
2016-11-01 18:07:36 +00:00
source=(https://archive.apache.org/dist/commons/daemon/source/${_libname}-${pkgver}-src.tar.gz{,.asc}
2015-07-24 00:52:00 +00:00
arm64.diff)
2016-11-01 18:07:36 +00:00
validpgpkeys=('F7DA48BB64BCB84ECBA7EE6935CD23C10D498E23') # Mladen Turk (Default signing key)
2015-07-24 00:52:00 +00:00
sha256sums=('11ee57d2c6b281589c1497b2f88180553f06d5ac1560ce1841e05f89f0342432'
2016-11-01 18:07:36 +00:00
'SKIP'
2015-07-24 00:52:00 +00:00
'00ce26841fb1bf74e072d3c2faa1c9989d52f28d36365dceaaa3744581681a7b')
2018-11-28 21:51:10 +00:00
makedepends=('ant' 'docbook2x' 'docbook-xsl' 'java-environment=8')
2015-07-24 00:52:00 +00:00
prepare() {
cd "${srcdir}/${_libname}-${pkgver}-src"
patch -p1 -i ../arm64.diff
}
build() {
CPPFLAGS+=" -I/usr/lib/jvm/java-7-openjdk/include/linux"
# commons-daemon.jar
cd "${srcdir}/${_libname}-${pkgver}-src"
ant
# jsvc
cd "${srcdir}/${_libname}-${pkgver}-src/src/native/unix"
2016-11-01 18:07:36 +00:00
JAVA_HOME=/usr/lib/jvm/default ./configure
2015-07-24 00:52:00 +00:00
make
docbook2man man/jsvc.1.xml
}
package_java-commons-daemon() {
pkgdesc='Alternative invocation mechanism for unix-daemon-like java code'
depends=('java-runtime')
cd "${srcdir}/${_libname}-${pkgver}-src"
2016-11-01 18:07:36 +00:00
install -Dm644 dist/${_libname}-${pkgver}.jar \
2015-07-24 00:52:00 +00:00
${pkgdir}/usr/share/java/${_libname}-${pkgver}.jar
ln -s ${_libname}-${pkgver}.jar \
${pkgdir}/usr/share/java/${_libname}.jar
}
package_java-jsvc() {
pkgdesc='Apache application for making Java applications run on UNIX more easily'
depends=("java-${_libname}" 'libcap')
cd "${srcdir}/${_libname}-${pkgver}-src/src/native/unix"
install -Dm755 jsvc ${pkgdir}/usr/bin/jsvc
install -Dm644 JSVC.1 ${pkgdir}/usr/share/man/man1/JSVC.1
}