summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorgeorgp2016-02-01 17:09:09 +0100
committergeorgp2016-02-01 17:09:09 +0100
commit26f8831c5b1f9207559e03a21f4eae2bf1b850a9 (patch)
tree1d2f74a537658ddcc77a95db4e5e2464e5098e5c
parent173011e355cf7ab26564641510765c9215e8354d (diff)
downloadaur-26f8831c5b1f9207559e03a21f4eae2bf1b850a9.tar.gz
add armv6h
-rw-r--r--.SRCINFO3
-rw-r--r--PKGBUILD31
2 files changed, 32 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 40713850756..903ad0c4619 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,8 +1,11 @@
+# Generated by mksrcinfo v8
+# Mon Feb 1 16:08:52 UTC 2016
pkgbase = jameica-nightly
pkgdesc = Jameica Plattform
pkgver = 2.7.0
pkgrel = 1
url = http://www.willuhn.de/products/jameica/
+ arch = armv6h
arch = i686
arch = x86_64
license = GPL
diff --git a/PKGBUILD b/PKGBUILD
index bca3c3c0f71..d0c5cf33116 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,9 +1,10 @@
-# Maintainer: r20d20 <r20d20@web.de>
+# Maintainer: johnnybash <georgpfahler@wachenzell.org>
+# Contributor: r20d20 <r20d20@web.de>
pkgname=jameica-nightly
pkgver=2.7.0
pkgrel=1
pkgdesc="Jameica Plattform"
-arch=(i686 x86_64)
+arch=(armv6h i686 x86_64)
url="http://www.willuhn.de/products/jameica/"
license=('GPL')
depends=('java-runtime>=1.6')
@@ -13,8 +14,34 @@ source=("http://www.willuhn.de/products/jameica/releases/nightly/jameica-$pkgver
md5sums=('SKIP'
'c5915975edcf2ef695f57e93983ebbe6')
+if [ "$CARCH" = "armv6h" ]; then
+depends+=(swt)
+fi
+
package() {
mkdir -p ${pkgdir}/usr/share/{java/jameica,applications}
cp -R "${srcdir}/jameica" "${pkgdir}/usr/share/java"
+
+ if [ "$CARCH" = "armv6h" ]; then
+
+ # remove local swt lib
+ rm -rf ${pkgdir}/usr/share/java/jameica/lib/swt/linux64
+
+ # adjust classpath in order to use system swt
+ unzip ${pkgdir}/usr/share/java/jameica/jameica-linux64.jar -d ${pkgdir}/usr/share/java/jameica/unzipped
+ sed -i 's|lib/swt/linux64/swt.jar|/usr/share/java/swt.jar|g' ${pkgdir}/usr/share/java/jameica/unzipped/META-INF/MANIFEST.MF
+
+ pushd ${pkgdir}/usr/share/java/jameica/unzipped
+ zip -r ../jameica-linux64.jar *
+ popd
+
+ # remove dead bodies
+ rm -rf ${pkgdir}/usr/share/java/jameica/unzipped
+
+ # link jameica-linux64.jar to jameica-linux64.jar
+ ln -s ${pkgdir}/usr/share/java/jameica/jameica-linux64.jar ${pkgdir}/usr/share/java/jameica/jameica-linux.jar
+
+ fi
+
install -m 644 ${srcdir}/jameica.desktop ${pkgdir}/usr/share/applications
} \ No newline at end of file