1 # Maintainer: Christopher Heien <chris.h.heien@gmail.com>
2 # Contributor: Lazaros Koromilas <koromilaz@gmail.com>
7 pkgdesc="High-performance XML database system and XPath/XQuery processor."
9 url="http://basex.org/"
11 depends=('java-runtime')
12 source=("http://files.basex.org/releases/${pkgver}/BaseX${pkgver//./}.zip"
15 sha1sums=('dcea301b7f4ba44ee7f9c8043a27293b129ffc29'
16 'b82c43d2f247d65b93b2f073543b8ceee038bfd1'
17 '53eb192fe09410da5dff22ba7ecd5b26e5753fd7')
20 # install profile.d script
21 install -dm755 ${pkgdir}/etc/profile.d || return 1
22 install -m755 ${srcdir}/${pkgname}.sh ${pkgdir}/etc/profile.d || return 1
25 # Get the BASEX_HOME env var
26 source ${srcdir}/${pkgname}.sh || return 1
29 install -dm755 ${pkgdir}/${BASEX_HOME}/{bin,lib,img} || return 1
31 # install gui shortcuts
33 install -dm755 ${pkgdir}/usr/share/applications || return 1
34 install -m755 BaseX.desktop ${pkgdir}/usr/share/applications || return 1
36 # extract and install icon
37 jar -xf basex/BaseX.jar img/icon.png
38 install -m644 img/icon.png ${pkgdir}/${BASEX_HOME}/img || return 1
40 install -m644 basex/*.jar ${pkgdir}/${BASEX_HOME} || return 1
41 install -m644 basex/lib/*.jar ${pkgdir}/${BASEX_HOME}/lib || return 1
42 cp -Rp basex/etc ${pkgdir}/${BASEX_HOME} || return 1
44 # Do not copy Windows .bat/.cmd files
45 find basex/bin -type f -a ! -name \*.bat -a ! -name \*.cmd \
46 -exec install -m755 {} ${pkgdir}/${BASEX_HOME}/bin \; || return 1