summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander F Rødseth2015-06-10 14:40:03 +0200
committerAlexander F Rødseth2015-06-10 14:40:03 +0200
commitb18cf7544e0b7a3ce1c9de9601cf204015cdf8c6 (patch)
tree77b38b046ed206f5be455ddf613eb0db93480e15
downloadaur-b18cf7544e0b7a3ce1c9de9601cf204015cdf8c6.tar.gz
Initial import
-rw-r--r--.SRCINFO13
-rw-r--r--PKGBUILD54
2 files changed, 67 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..eb5337e13b7
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,13 @@
+pkgbase = jxplorer
+ pkgdesc = Java LDAP client
+ pkgver = 3.3.1
+ pkgrel = 1
+ url = http://jxplorer.org/
+ arch = any
+ license = custom
+ depends = java-runtime
+ source = http://downloads.sourceforge.net/project/jxplorer/jxplorer/version%203.3.1/jxplorer-3.3.1-linux-installer.run
+ md5sums = 19d7f034b3b0687800c0efb2f6ec35ab
+
+pkgname = jxplorer
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..c77fcc42494
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,54 @@
+# Maintainer: Alexander Rødseth <rodseth@gmail.com>
+# Contributor: Tom Wizetek <tom@wizetek.com>
+
+# TODO: Further cleanup
+
+pkgname=jxplorer
+pkgver=3.3.1
+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')
+
+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
+#!/bin/sh
+cd /opt/${pkgname}
+sh jxplorer.sh "\$@"
+EoF
+ install -d "$pkgdir/usr/bin"
+ 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
+}
+
+# vim:set ts=2 sw=2 et: