summaryrefslogtreecommitdiffstats
path: root/apache_spark
diff options
context:
space:
mode:
Diffstat (limited to 'apache_spark')
-rw-r--r--apache_spark/PKGBUILD35
1 files changed, 18 insertions, 17 deletions
diff --git a/apache_spark/PKGBUILD b/apache_spark/PKGBUILD
index f1783d0..b1b06c3 100644
--- a/apache_spark/PKGBUILD
+++ b/apache_spark/PKGBUILD
@@ -1,40 +1,41 @@
# Maintainer: Tao-Yi Lee <tylee@ieee.org>
pkgname=apache_spark
_pkgname=spark
-pkgver=1.6.1
+pkgver=1.6.2
+_fullpkgname="${_pkgname}-${pkgver}-bin-hadoop2.6"
pkgrel=1
pkgdesc="Apache Sparkā„¢ is a fast and general engine for large-scale data processing."
arch=('i686' 'x86_64')
url="http://spark.apache.org"
license=('apache')
groups=()
-depends=('java-environment-common')
+depends=('java-runtime-common')
provides=()
conflicts=()
replaces=()
backup=()
-options=()
+options=('!debug')
install=
-source=("https://github.com/apache/$_pkgname/archive/v$pkgver.tar.gz")
-noextract=()
-md5sums=('28a2e00bae5141f49162e1eb0d959f82')
-
-build() {
- cd "$srcdir/$_pkgname-$pkgver"
-
- export JAVA_HOME="/usr/lib/jvm/$(archlinux-java get)"
- ./make-distribution.sh --tgz -Phadoop-2.6 -Pyarn
-}
+source=("http://mirror.nexcess.net/apache/$_pkgname/$_pkgname-$pkgver/$_fullpkgname.tgz")
+noextract=("$_fullpkgname.tgz")
+md5sums=('604936f2bd8af999d0d624b370f5c4b1')
package() {
_etc_profiled=${pkgdir}/etc/profile.d
- mkdir -p "${pkgdir}/opt/${pkgname}-${pkgver}"
+ mkdir -p "${pkgdir}/opt"
mkdir -p $_etc_profiled
# install spark
- tar -xf "$srcdir/$_pkgname-$pkgver/spark-$pkgver-bin-2.6.0.tgz" -C "${pkgdir}/opt/$pkgname-$pkgver" --strip=1
- msg "Spark will be installed under /opt/$pkgname-$pkgver"
- echo "export PATH=\$PATH:/opt/$pkgname-${pkver}/bin" >> "${_etc_profiled}/${pkgname}.sh"
+ msg "Spark will be installed under /opt/$_fullpkgname"
+ tar -xf $_fullpkgname.tgz -C ${pkgdir}/opt
+ pushd "${pkgdir}/opt/$_fullpkgname/python/lib/" > /dev/null
+ rm py4j-0.9-src.zip PY4J_LICENSE.txt
+ popd > /dev/null
+ sed -i '/py4j/d' "${pkgdir}/opt/$_fullpkgname/bin/pyspark"
+ echo "export PATH=\$PATH:/opt/$_fullpkgname/bin" >> \
+ "${_etc_profiled}/${pkgname}.sh"
+ echo "export SPARK_HOME=/opt/$_fullpkgname" >> \
+ "${_etc_profiled}/${pkgname}.sh"
}
# vim:set ts=2 sw=2 et: