Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Rapidminer PKGBUILD

By: a guest on Apr 1st, 2013  |  syntax: None  |  size: 1.93 KB  |  hits: 37  |  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. # Maintainer: mmm
  2. # Contributor: Thomas Dziedzic < gostrc at gmail >
  3. # Contributor: Bram Schoenmakers <me@bramschoenmakers.nl>
  4.  
  5. pkgname=rapidminer
  6. pkgver=5.2.006
  7. pkgrel=1
  8. pkgdesc='An open-source data mining solution.'
  9. arch=('any')
  10. url='http://rapid-i.com/'
  11. license=('custom')
  12. depends=('java-runtime')
  13. optdepends=('gnuplot')
  14. source=("http://downloads.sourceforge.net/project/rapidminer/1.%20RapidMiner/${pkgver:0:3}/rapidminer-${pkgver}.zip"
  15.         'rapidminer.desktop')
  16. md5sums=('9c19fa8ca57da86d31324799b9e46095'
  17.          'd0dbcb8ad72c285efec9740c1cda65e0')
  18.  
  19. package() {
  20.   cd rapidminer
  21.  
  22.   # Determine JAVA_HOME
  23.   [ -f /etc/profile.d/openjdk6.sh ] && source /etc/profile.d/openjdk6.sh
  24.   [ -f /etc/profile.d/jdk.sh ] && source /etc/profile.d/jdk.sh
  25.   [ -z "$JAVA_HOME" ] && ( echo "Could not determine JAVA_HOME."; return 1 )
  26.  
  27.   # Modify scripts such that the /opt/rapidminer prefix is recognized.
  28.   # Also set the JAVA_HOME
  29.   sed -i'' -e "s|^#RAPIDMINER_HOME=\\\${HOME}\$|RAPIDMINER_HOME=/opt/rapidminer\nJAVA_HOME=${JAVA_HOME}|" scripts/rapidminer
  30.   sed -i'' -e "s|^#RAPIDMINER_HOME=\\\${HOME}\$|RAPIDMINER_HOME=/opt/rapidminer\nJAVA_HOME=${JAVA_HOME}|" scripts/RapidMinerGUI
  31.  
  32.   # Install files into prefix
  33.   find {lib,resources} -type f -exec install -m 644 -D {} ${pkgdir}/opt/rapidminer/{} \;
  34.   install -D scripts/rapidminer ${pkgdir}/opt/rapidminer/bin/rapidminer
  35.   install -D scripts/RapidMinerGUI ${pkgdir}/opt/rapidminer/bin/RapidMinerGUI
  36.  
  37.   # custom licenses
  38.   pushd licenses
  39.   find . -type f -exec install -m 644 -D {} ${pkgdir}/usr/share/licenses/rapidminer/{} \;
  40.   popd
  41.  
  42.   # install links to bins
  43.   install -d ${pkgdir}/usr/bin
  44.   ln -s /opt/rapidminer/bin/RapidMinerGUI \
  45.     ${pkgdir}/usr/bin/RapidMinerGUI
  46.   ln -s /opt/rapidminer/bin/rapidminer \
  47.     ${pkgdir}/usr/bin/rapidminer
  48.  
  49.   # desktop file
  50.   install -D -m644 ${srcdir}/rapidminer.desktop \
  51.     ${pkgdir}/usr/share/applications/rapidminer.desktop
  52. }