This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

PKGBUILD

By: a guest on Jul 2nd, 2011  |  syntax: Bash  |  size: 1.14 KB  |  views: 75  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Contributor: Lazaros Koromilas <koromilaz@gmail.com>
  2.  
  3. pkgname=basex
  4. pkgver=6.7
  5. _altver=$(echo $pkgver | sed 's/\.//')
  6. pkgrel=1
  7. pkgdesc="High-performance XML database system and XPath/XQuery processor."
  8. arch=('i686' 'x86_64')
  9. url="http://basex.org/"
  10. license=('BSD')
  11. depends=('java-runtime')
  12. source=("http://files.basex.org/releases/$pkgver/BaseX$_altver.zip" "basex.sh")
  13. md5sums=('0fa67b54feedb517ff7ed144db39cde8'
  14.          'bd10321e9b4b7d1b39b125fc8af49b54')
  15.  
  16. build() {
  17.   # install profile.d script
  18.   install -dm755 ${pkgdir}/etc/profile.d || return 1
  19.   install -m755 ${srcdir}/${pkgname}.sh ${pkgdir}/etc/profile.d/ || return 1
  20.  
  21.   # Get the BASEX_HOME env var
  22.   source ${srcdir}/${pkgname}.sh || return 1
  23.  
  24.   cd ${srcdir}
  25.   install -dm755 ${pkgdir}/${BASEX_HOME}/{bin,lib} || return 1
  26.  
  27.   install -m644 ./*.jar ${pkgdir}/${BASEX_HOME} || return 1
  28.   install -m644 ./lib/*.jar ${pkgdir}/${BASEX_HOME}/lib || return 1
  29.   cp -Rp ./etc ${pkgdir}/${BASEX_HOME} || return 1
  30.  
  31.   # Do not copy Windows .bat/.cmd files
  32.   find ./bin -type f -a ! -name \*.bat -a ! -name \*.cmd \
  33.     -exec install -m755 {} ${pkgdir}/${BASEX_HOME}/bin \; || return 1
  34. }
clone this paste RAW Paste Data