summaryrefslogtreecommitdiff
path: root/pcr/jna/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/jna/PKGBUILD')
-rw-r--r--pcr/jna/PKGBUILD14
1 files changed, 10 insertions, 4 deletions
diff --git a/pcr/jna/PKGBUILD b/pcr/jna/PKGBUILD
index 751ba695f..0bfe85cfd 100644
--- a/pcr/jna/PKGBUILD
+++ b/pcr/jna/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=jna
pkgver=4.2.2
-pkgrel=1
+pkgrel=1.1
pkgdesc="Access native libraries with pure Java code."
arch=('any')
url='https://github.com/java-native-access/jna'
@@ -24,7 +24,7 @@ prepare() {
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
- ant jar javadoc \
+ ant jar javadoc contrib-jars \
-Dmaven-release=true
}
@@ -37,15 +37,21 @@ package() {
# Install documentation
install -d "${pkgdir}/usr/share/doc/${pkgname}"
- cp -r "doc/javadoc" "${pkgdir}/usr/share/doc/${pkgname}"
+ cp -r doc/javadoc "${pkgdir}/usr/share/doc/${pkgname}"
# Install Maven artifacts
export DESTDIR=${pkgdir}
jh mvn-install "net.java.dev.${pkgname}" ${pkgname} ${pkgver} \
- "pom-jna.xml" \
+ "pom-${pkgname}.xml" \
"build/${pkgname}.jar" \
"${pkgname}-${pkgver}.jar"
+ jh mvn-install "net.java.dev.${pkgname}" "${pkgname}-platform" ${pkgver} \
+ "pom-${pkgname}-platform.xml" \
+ "contrib/platform/dist/${pkgname}-platform.jar" \
+ "${pkgname}-platform-${pkgver}.jar"
ln -s "/usr/share/java/${pkgname}-${pkgver}.jar" \
"${pkgdir}/usr/share/java/${pkgname}.jar"
+ ln -s "/usr/share/java/${pkgname}-platform-${pkgver}.jar" \
+ "${pkgdir}/usr/share/java/${pkgname}-platform.jar"
}