1 # Maintainer: Thomas Dziedzic < gostrc at gmail >
2 # Contributor: Bram Schoenmakers <me@bramschoenmakers.nl>
7 pkgdesc='An open-source data mining solution.'
9 url='http://rapid-i.com/'
11 depends=('java-runtime')
12 optdepends=('gnuplot')
13 source=("http://downloads.sourceforge.net/project/rapidminer/1.%20RapidMiner/${pkgver:0:3}/rapidminer-${pkgver}.zip"
15 md5sums=('146b431a9de5e2d327afef81694b1009'
16 'd0dbcb8ad72c285efec9740c1cda65e0')
22 [ -f /etc/profile.d/openjdk6.sh ] && source /etc/profile.d/openjdk6.sh
23 [ -z "$JAVA_HOME" ] && ( echo "Could not determine JAVA_HOME."; return 1 )
25 # Modify scripts such that the /opt/rapidminer prefix is recognized.
26 # Also set the JAVA_HOME
27 sed -i'' -e "s|^#RAPIDMINER_HOME=\\\${HOME}\$|RAPIDMINER_HOME=/opt/rapidminer\nJAVA_HOME=${JAVA_HOME}|" scripts/rapidminer
28 sed -i'' -e "s|^#RAPIDMINER_HOME=\\\${HOME}\$|RAPIDMINER_HOME=/opt/rapidminer\nJAVA_HOME=${JAVA_HOME}|" scripts/RapidMinerGUI
30 # Install files into prefix
31 find {lib,resources} -type f -exec install -m 644 -D {} ${pkgdir}/opt/rapidminer/{} \;
32 install -D scripts/rapidminer ${pkgdir}/opt/rapidminer/bin/rapidminer
33 install -D scripts/RapidMinerGUI ${pkgdir}/opt/rapidminer/bin/RapidMinerGUI
37 find . -type f -exec install -m 644 -D {} ${pkgdir}/usr/share/licenses/rapidminer/{} \;
40 # install links to bins
41 install -d ${pkgdir}/usr/bin
42 ln -s /opt/rapidminer/bin/RapidMinerGUI \
43 ${pkgdir}/usr/bin/RapidMinerGUI
44 ln -s /opt/rapidminer/bin/rapidminer \
45 ${pkgdir}/usr/bin/rapidminer
48 install -D -m644 ${srcdir}/rapidminer.desktop \
49 ${pkgdir}/usr/share/applications/rapidminer.desktop