updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / jxplorer / PKGBUILD
blobce494c1bbbb9a48e624be7892b9b8ff9bf6dec10
1 # Contributor: Tom Wizetek <tom@wizetek.com>
2 pkgname=jxplorer
3 pkgver=3.2.1
4 pkgrel=2
5 pkgdesc="Java LDAP client"
6 _pkgbin="${pkgname}-${pkgver}-linux-installer.bin"
7 _desktop='usr/share/applications/JXplorer.desktop'
8 url="http://jxplorer.org/"
9 license=('custom')
10 arch=('any')
11 depends=('java-runtime')
12 source=("http://downloads.sourceforge.net/project/${pkgname}/${pkgname}/version ${pkgver}/${_pkgbin}")
13 md5sums=('f558a18496a46c336012aca8294ff9a9')
15 package() {
16         chmod 0700 ${_pkgbin}
17         ./${_pkgbin} --mode unattended --prefix ${srcdir}/${pkgname}
19         install -d -m 0755 ${pkgdir}/opt
20         cp -r ${srcdir}/${pkgname} ${pkgdir}/opt
21         chmod 0755 ${pkgdir}/opt/${pkgname}/jxplorer.sh
23         # Regrettably, there is no user settings separation (as far as I can tell).
24         # We will use globally writeable config files then. Sorry.
25         # There may be more than these two...
26         touch ${pkgdir}/opt/${pkgname}/gssapi.conf
27         touch ${pkgdir}/opt/${pkgname}/jxconfig.txt
28         chmod 0777 ${pkgdir}/opt/${pkgname}/gssapi.conf
29         chmod 0777 ${pkgdir}/opt/${pkgname}/jxconfig.txt
31         install -D -m 0644 ${srcdir}/${pkgname}/JXplorer.desktop ${pkgdir}/${_desktop}
32         sed -i "s,${srcdir},/opt," ${pkgdir}/${_desktop}
33         sed -i "/^Version=/c\Version=${pkgver}" ${pkgdir}/${_desktop}
34         sed -i "/^Comment=/c\Comment=${pkgdesc}" ${pkgdir}/${_desktop}
36         rm ${pkgdir}/opt/${pkgname}/uninstall
37         rm ${pkgdir}/opt/${pkgname}/*.desktop
38         rm ${pkgdir}/opt/${pkgname}/*.bat