summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorharvey2021-05-30 16:38:52 +0200
committerharvey2021-05-30 16:38:52 +0200
commit52ca841cea421f558a67a3b919578af5f9398dba (patch)
tree93c9153a2e9504f7e5704c9bcb77de7f1043b105 /PKGBUILD
parent71baeb374c3e55b737b7a22fe580d70bc3a9bf3b (diff)
downloadaur-52ca841cea421f558a67a3b919578af5f9398dba.tar.gz
initial rework of PKGBUILD as maintainer
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD32
1 files changed, 8 insertions, 24 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 930683cce32..415674fa8d3 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,17 +1,18 @@
# Contributor: johnnybash <georgpfahler@wachenzell.org>
# Contributor: r20d20 <r20d20@web.de>
# Contributor: Stefan Husmann <stefan-husmann@t-online.de>
-# Maintainer: Square252 <square@0xfc.de>
+# Contributor: Square252 <square@0xfc.de>
+# Maintainer: Harvey <harv at gmx dot de>
pkgname=jameica-nightly
pkgver=2.11.0
-pkgrel=1
-pkgdesc="Jameica is a free Java application platform"
-arch=('any')
+pkgrel=3
+pkgdesc="Free Java application platform"
+arch=('x86_64')
url="http://www.willuhn.de/products/jameica/"
-license=('GPL')
-depends=('java-runtime>=1.6' 'bash' 'swt')
-makedepends=('zip' 'unzip')
+license=('GPL2')
+depends=('java-runtime>=11' 'gtk3')
+makedepends=('unzip')
conflicts=('jameica')
source=("http://www.willuhn.de/products/jameica/releases/nightly/jameica-linux64-$pkgver-nightly.zip" "jameica.desktop")
sha256sums=('SKIP'
@@ -20,24 +21,7 @@ sha256sums=('SKIP'
package() {
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
-
- # 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
-
install -m 644 "$srcdir"/jameica.desktop "$pkgdir"/usr/share/applications
}