summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD64
-rw-r--r--jxplorer.patch70
3 files changed, 111 insertions, 37 deletions
diff --git a/.SRCINFO b/.SRCINFO
index c62b17ca138..49e5daf2a63 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,14 +1,18 @@
pkgbase = jxplorer
- pkgdesc = Java LDAP client
+ pkgdesc = Java LDAP browser and editor
pkgver = 3.3.1.2
- pkgrel = 2
+ pkgrel = 3
url = http://jxplorer.org/
arch = any
license = custom
- makedepends = setconf
+ makedepends = apache-ant
+ makedepends = java-environment=8
+ makedepends = gendesk
depends = java-runtime
- source = http://downloads.sourceforge.net/project/jxplorer/jxplorer/version/3.3.1.2/jxplorer-3.3.1.2-linux-installer.run
- sha256sums = 7ff5ff0a124d8e16d7688ae093cfcd859f4be3104f3455cc59d4b15d55a61ffa
+ source = https://github.com/pegacat/jxplorer/archive/v3.3.1.2.tar.gz
+ source = jxplorer.patch
+ sha256sums = a70cd8675de1be82282f975459066b2ac93429a206d7c7c801f1aa861d66684f
+ sha256sums = 52bf7ce677d0e1cc9fc82f99ed1bb9934eb6141783e11e4265cfea256ed52b64
pkgname = jxplorer
diff --git a/PKGBUILD b/PKGBUILD
index c0e12b826b4..1e24303248e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,54 +1,54 @@
-# Maintainer: Alexander F Rødseth <xyproto@archlinux.org>
+# Maintainer: Andrew O'Neill <andrew at meanjollies dot com>
+# Contributor: Alexander F Rødseth <xyproto@archlinux.org>
# Contributor: Tom Wizetek <tom@wizetek.com>
pkgname=jxplorer
pkgver=3.3.1.2
-pkgrel=2
-pkgdesc='Java LDAP client'
+pkgrel=3
+pkgdesc='Java LDAP browser and editor'
url='http://jxplorer.org/'
license=('custom')
arch=('any')
depends=('java-runtime')
-makedepends=('setconf')
-source=("http://downloads.sourceforge.net/project/${pkgname}/${pkgname}/version%20${pkgver}/$pkgname-$pkgver-linux-installer.run")
-sha256sums=('7ff5ff0a124d8e16d7688ae093cfcd859f4be3104f3455cc59d4b15d55a61ffa')
+makedepends=('apache-ant' 'java-environment=8' 'gendesk')
+source=("https://github.com/pegacat/jxplorer/archive/v${pkgver}.tar.gz"
+ "${pkgname}.patch")
+sha256sums=('a70cd8675de1be82282f975459066b2ac93429a206d7c7c801f1aa861d66684f'
+ '52bf7ce677d0e1cc9fc82f99ed1bb9934eb6141783e11e4265cfea256ed52b64')
prepare() {
- cat > "$pkgname.run" << EOF
+ cd "${pkgname}-${pkgver}"
+
+ cat > "${pkgname}" << EOF
#!/bin/sh
-cd "/opt/$pkgname"
+cd "/opt/${pkgname}"
sh jxplorer.sh "\$@"
EOF
- chmod +x *.run
- ./"$pkgname-$pkgver-linux-installer.run" \
- --mode unattended \
- --prefix "$srcdir/$pkgname"
+ chmod +x ${pkgname}
+ gendesk --pkgname "${pkgname}" --pkgdesc "${pkgdesc}" --exec "/usr/bin/jxplorer" -n
+
+ patch -p1 -i ../${pkgname}.patch
- 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"
+ install -d plugins
+ install -d jasper/{lib,lib_extras}
}
-package() {
- install -d "$pkgdir/opt"
+build() {
+ cd "${pkgname}-${pkgver}"
+
+ JAVA_HOME=/usr/lib/jvm/java-8-openjdk ant dist
+}
- cp -r "$pkgname" "$pkgdir/opt"
- chmod +x "$pkgdir/opt/$pkgname/jxplorer.sh"
- touch "$pkgdir/opt/$pkgname/"{gssapi.conf,jxconfig.txt}
+package() {
+ install -d "${pkgdir}/opt"
- # No user settings, only global. Bah.
- chmod 666 "$pkgdir/opt/$pkgname/"{gssapi.conf,jxconfig.txt}
- chmod 777 "$pkgdir/opt/$pkgname/plugins/"
+ cd "${pkgname}-${pkgver}"
- install -Dm755 "$pkgname.run" "$pkgdir/usr/bin/$pkgname"
- install -Dm644 "$pkgname/JXplorer.desktop" \
- "$pkgdir/usr/share/applications/JXplorer.desktop"
+ cp -r "dist/${pkgname}" "${pkgdir}/opt"
- # Cleanup
- rm -f "$pkgdir/opt/$pkgname/"{uninstall,*.desktop,*.bat}
+ install -Dm755 ${pkgname} "${pkgdir}/usr/bin/${pkgname}"
+ install -Dm644 ${pkgname}.desktop "${pkgdir}/usr/share/applications/JXplorer.desktop"
+ install -Dm644 images/JX128.png "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
+ install -Dm644 licence.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
-
-# vim:set ts=2 sw=2 et:
diff --git a/jxplorer.patch b/jxplorer.patch
new file mode 100644
index 00000000000..49b41789144
--- /dev/null
+++ b/jxplorer.patch
@@ -0,0 +1,70 @@
+diff -rupN jxplorer-3.3.1.2/build.xml jxplorer-3.3.1.2b/build.xml
+--- jxplorer-3.3.1.2/build.xml 2016-06-06 01:27:20.000000000 -0400
++++ jxplorer-3.3.1.2b/build.xml 2018-07-04 14:19:14.472640282 -0400
+@@ -275,9 +275,6 @@ sftp> ls
+ <copy todir="${dist}/jxplorer/src" overwrite="true">
+ <fileset dir="src" excludes="com/pegacat/jxworkbench/**/*.java"/>
+ </copy>
+- <copy todir="${dist}/jxplorer/JXplorer LDAP Browser.app" overwrite="true">
+- <fileset dir="JXplorer LDAP Browser.app"/>
+- </copy>
+
+ <fixcrlf srcdir="${dist}"
+ eol="unix"
+@@ -294,10 +291,6 @@ sftp> ls
+ <chmod dir="${dist}" perm="755"
+ includes="**/*.sh"/>
+
+- <chmod file="${dist}/jxplorer/JXplorer LDAP Browser.app/Contents/PkgInfo" perm="755"/>
+-
+- <chmod file="${dist}/jxplorer/JXplorer LDAP Browser.app/Contents/MacOS/JXplorer LDAP Browser" perm="755"/>
+-
+ </target>
+
+ <target name="dist_jxworkbench"
+@@ -391,45 +384,9 @@ sftp> ls
+ <exec executable="${builder}">
+ <arg value="build"/>
+ <arg value="${installer_project_file}"/>
+- <arg value="windows"/>
+- </exec>
+-
+- <exec executable="${builder}">
+- <arg value="build"/>
+- <arg value="${installer_project_file}"/>
+ <arg value="linux"/>
+ </exec>
+
+- <exec executable="${builder}">
+- <arg value="build"/>
+- <arg value="${installer_project_file}"/>
+- <arg value="freebsd"/>
+- </exec>
+-
+- <exec executable="${builder}">
+- <arg value="build"/>
+- <arg value="${installer_project_file}"/>
+- <arg value="solaris-intel"/>
+- </exec>
+-
+- <exec executable="${builder}">
+- <arg value="build"/>
+- <arg value="${installer_project_file}"/>
+- <arg value="solaris-sparc"/>
+- </exec>
+-
+- <exec executable="${builder}">
+- <arg value="build"/>
+- <arg value="${installer_project_file}"/>
+- <arg value="aix"/>
+- </exec>
+-
+- <exec executable="${builder}">
+- <arg value="build"/>
+- <arg value="${installer_project_file}"/>
+- <arg value="hpux"/>
+- </exec>
+-
+ <!--exec executable="${builder}">
+ <arg value="build"/>
+ <arg value="${installer_project_file}"/>