summaryrefslogtreecommitdiff
path: root/pcr/jna/PKGBUILD
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2016-06-23 01:50:31 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2016-06-23 01:50:31 -0500
commit62d76c5259a209017f4e2b895fccd3f06ae5dfff (patch)
treef7f5dc8533e3f2d6d70fa13de1cfd70673068a2c /pcr/jna/PKGBUILD
parent0476b40a1749e2fd1c57c2e0a1609a50c28e8d09 (diff)
downloadabslibre-62d76c5259a209017f4e2b895fccd3f06ae5dfff.tar.gz
abslibre-62d76c5259a209017f4e2b895fccd3f06ae5dfff.tar.bz2
abslibre-62d76c5259a209017f4e2b895fccd3f06ae5dfff.zip
jna-4.2.2-1.1: rebuild
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"
}