summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorhaawda2019-05-14 21:51:12 +0200
committerhaawda2019-05-14 21:51:12 +0200
commit7d490cab971f4fb1c04d3f2cfc1bf5327d90dfae (patch)
treee6eb5766244aee7dae5328fa2b1a33a815ece31f
parenta7b8faf26be7f042057e453ff6d114015696d69b (diff)
downloadaur-7d490cab971f4fb1c04d3f2cfc1bf5327d90dfae.tar.gz
adopted and corrected
-rw-r--r--.SRCINFO13
-rw-r--r--PKGBUILD76
2 files changed, 44 insertions, 45 deletions
diff --git a/.SRCINFO b/.SRCINFO
index a6c16d64c76..534beb287c1 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,20 +1,19 @@
pkgbase = jameica-nightly
pkgdesc = Jameica Plattform
pkgver = 2.9.0
- pkgrel = 1
+ pkgrel = 2
url = http://www.willuhn.de/products/jameica/
- arch = armv6h
- arch = armv7h
- arch = aarch64
- arch = i686
- arch = x86_64
+ arch = any
license = GPL
+ makedepends = zip
makedepends = unzip
depends = java-runtime>=1.6
+ depends = bash
+ depends = swt
conflicts = jameica
source = http://www.willuhn.de/products/jameica/releases/nightly/jameica-linux64-2.9.0-nightly.zip
source = jameica.desktop
- sha256sums = SKIP
+ sha256sums = f8b10dd02a47372ce6cab2461225688216b12a2e73302ac7f2cdfe4e9a27f0fa
sha256sums = b0221e7463407243d2922107d0de4c437e2037ab0639e2961c443db4f15725fc
pkgname = jameica-nightly
diff --git a/PKGBUILD b/PKGBUILD
index aaec7745e85..b187b5908d2 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,47 +1,47 @@
-# Maintainer: johnnybash <georgpfahler@wachenzell.org>
+# Contributor: johnnybash <georgpfahler@wachenzell.org>
# Contributor: r20d20 <r20d20@web.de>
+# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
+
pkgname=jameica-nightly
pkgver=2.9.0
-pkgrel=1
+pkgrel=2
pkgdesc="Jameica Plattform"
-arch=(armv6h armv7h aarch64 i686 x86_64)
+arch=('any')
url="http://www.willuhn.de/products/jameica/"
license=('GPL')
-depends=('java-runtime>=1.6')
-makedepends=('unzip')
-conflicts=(jameica)
+depends=('java-runtime>=1.6' 'bash' 'swt')
+makedepends=('zip' 'unzip')
+conflicts=('jameica')
source=("http://www.willuhn.de/products/jameica/releases/nightly/jameica-linux64-$pkgver-nightly.zip" "jameica.desktop")
-sha256sums=('SKIP'
- 'b0221e7463407243d2922107d0de4c437e2037ab0639e2961c443db4f15725fc')
-
-if [ "$CARCH" = "armv6h" ] || [ "$CARCH" = "armv7h" ] || [ "$CARCH" = "aarch64" ]; then
- depends+=(swt)
-fi
+sha256sums=('f8b10dd02a47372ce6cab2461225688216b12a2e73302ac7f2cdfe4e9a27f0fa'
+ 'b0221e7463407243d2922107d0de4c437e2037ab0639e2961c443db4f15725fc')
package() {
- mkdir -p ${pkgdir}/usr/share/{java/jameica,applications}
- cp -R "${srcdir}/jameica" "${pkgdir}/usr/share/java"
-
- if [ "$CARCH" = "armv6h" ] || [ "$CARCH" = "armv7h" ] || [ "$CARCH" = "aarch64" ]; 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-linux.jar
- ln -s /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
+ install -d "$pkgdir"/usr/share/{java/jameica,applications}
+ cp -R "$srcdir"/jameica "$pkgdir"/usr/share/java
+ # remove local swt lib
+ rm -rf "$pkgdir"/usr/share/java/jameica/lib/swt/linux64
+
+ if [ "$CARCH" = "armv6h" ] || [ "$CARCH" = "armv7h" ] || [ "$CARCH" = "aarch64" ]; then
+
+ # 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-linux.jar
+ ln -s /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
+}