summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO7
-rw-r--r--PKGBUILD76
2 files changed, 42 insertions, 41 deletions
diff --git a/.SRCINFO b/.SRCINFO
index eb5337e13b7..db678090802 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,13 +1,14 @@
pkgbase = jxplorer
pkgdesc = Java LDAP client
- pkgver = 3.3.1
+ pkgver = 3.3.1.2
pkgrel = 1
url = http://jxplorer.org/
arch = any
license = custom
+ makedepends = setconf
depends = java-runtime
- source = http://downloads.sourceforge.net/project/jxplorer/jxplorer/version%203.3.1/jxplorer-3.3.1-linux-installer.run
- md5sums = 19d7f034b3b0687800c0efb2f6ec35ab
+ source = http://downloads.sourceforge.net/project/jxplorer/jxplorer/version/3.3.1.2/jxplorer-3.3.1.2-linux-installer.run
+ sha256sums = 7ff5ff0a124d8e16d7688ae093cfcd859f4be3104f3455cc59d4b15d55a61ffa
pkgname = jxplorer
diff --git a/PKGBUILD b/PKGBUILD
index c77fcc42494..fd2836ae89b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,54 +1,54 @@
-# Maintainer: Alexander Rødseth <rodseth@gmail.com>
+# Maintainer: Alexander F Rødseth <xyproto@archlinux.org>
# Contributor: Tom Wizetek <tom@wizetek.com>
-# TODO: Further cleanup
-
pkgname=jxplorer
-pkgver=3.3.1
+pkgver=3.3.1.2
pkgrel=1
pkgdesc='Java LDAP client'
-_pkgbin="${pkgname}-${pkgver}-linux-installer.run"
-_desktop='usr/share/applications/JXplorer.desktop'
url='http://jxplorer.org/'
license=('custom')
arch=('any')
depends=('java-runtime')
-source=("http://downloads.sourceforge.net/project/${pkgname}/${pkgname}/version%20${pkgver}/${_pkgbin}")
-md5sums=('19d7f034b3b0687800c0efb2f6ec35ab')
+makedepends=('setconf')
+source=("http://downloads.sourceforge.net/project/${pkgname}/${pkgname}/version/${pkgver}/$pkgname-$pkgver-linux-installer.run")
+sha256sums=('7ff5ff0a124d8e16d7688ae093cfcd859f4be3104f3455cc59d4b15d55a61ffa')
-package() {
- chmod 0700 ${_pkgbin}
- ./${_pkgbin} --mode unattended --prefix ${srcdir}/${pkgname}
-
- install -d -m 0755 ${pkgdir}/opt
- cp -r ${srcdir}/${pkgname} ${pkgdir}/opt
- chmod 0755 ${pkgdir}/opt/${pkgname}/jxplorer.sh
-
- # Regrettably, there is no user settings separation (as far as I can tell).
- # We will use globally writeable config files then. Sorry.
- # There may be more than these two files and the plugins directory!
- touch ${pkgdir}/opt/${pkgname}/gssapi.conf
- touch ${pkgdir}/opt/${pkgname}/jxconfig.txt
- chmod 0666 ${pkgdir}/opt/${pkgname}/gssapi.conf
- chmod 0666 ${pkgdir}/opt/${pkgname}/jxconfig.txt
- chmod 0777 ${pkgdir}/opt/${pkgname}/plugins
-
- cat > ${pkgname}.run << EoF
+prepare() {
+ cat > "$pkgname.run" << EOF
#!/bin/sh
-cd /opt/${pkgname}
+cd "/opt/$pkgname"
sh jxplorer.sh "\$@"
-EoF
- install -d "$pkgdir/usr/bin"
+EOF
+
+ chmod +x *.run
+ ./"$pkgname-$pkgver-linux-installer.run" \
+ --mode unattended \
+ --prefix "$srcdir/$pkgname"
+
+ cd "$pkgname"
+ setconf JXplorer.desktop Version "$pkgver"
+ setconf JXplorer.desktop Comment "$pkgdesc"
+ setconf JXplorer.desktop Icon "/opt/jxplorer/images/logo_32_trans.gif"
+ setconf JXplorer.desktop Exec "/opt/jxplorer/jsxplorer.sh"
+}
+
+package() {
+ install -d "$pkgdir/opt"
+
+ cp -r "$pkgname" "$pkgdir/opt"
+ chmod +x "$pkgdir/opt/$pkgname/jxplorer.sh"
+ touch "$pkgdir/opt/$pkgname/"{gssapi.conf,jxconfig.txt}
+
+ # No user settings, only global. Bah.
+ chmod 666 "$pkgdir/opt/$pkgname/"{gssapi.conf,jxconfig.txt}
+ chmod 777 "$pkgdir/opt/$pkgname/plugins/"
+
install -Dm755 "$pkgname.run" "$pkgdir/usr/bin/$pkgname"
-
- install -Dm644 "$srcdir/$pkgname/JXplorer.desktop" "$pkgdir/$_desktop"
- sed -i "s,${srcdir},/opt," "$pkgdir/$_desktop"
- sed -i "/^Version=/c\Version=${pkgver}" "$pkgdir/$_desktop"
- sed -i "/^Comment=/c\Comment=${pkgdesc}" "$pkgdir/$_desktop"
-
- rm "$pkgdir/opt/$pkgname/uninstall" \
- "$pkgdir/opt/$pkgname/"*.desktop \
- "$pkgdir/opt/$pkgname/"*.bat
+ install -Dm644 "$pkgname/JXplorer.desktop" \
+ "$pkgdir/usr/share/applications/JXplorer.desktop"
+
+ # Cleanup
+ rm -f "$pkgdir/opt/$pkgname/"{uninstall,*.desktop,*.bat}
}
# vim:set ts=2 sw=2 et: