summaryrefslogtreecommitdiffstats
path: root/apache_spark
diff options
context:
space:
mode:
authorGuillaume Horel <guillaume.horel@gmail.com>2016-06-21 07:58:50 -0400
committerGuillaume Horel <guillaume.horel@gmail.com>2016-06-21 07:58:50 -0400
commitaf403e72b45143a64fe1dbba6c40cbb4f498bf4e (patch)
tree48aaa3e2ec8c964a0d7e3e05b671e20f5a18795a /apache_spark
parent13056385c16f294483c0a7616210786ba5170b81 (diff)
downloadarch-pkgs-af403e72b45143a64fe1dbba6c40cbb4f498bf4e.tar.gz
update apache_spark
Diffstat (limited to 'apache_spark')
-rw-r--r--apache_spark/PKGBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/apache_spark/PKGBUILD b/apache_spark/PKGBUILD
new file mode 100644
index 0000000..f1783d0
--- /dev/null
+++ b/apache_spark/PKGBUILD
@@ -0,0 +1,40 @@
+# Maintainer: Tao-Yi Lee <tylee@ieee.org>
+pkgname=apache_spark
+_pkgname=spark
+pkgver=1.6.1
+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')
+provides=()
+conflicts=()
+replaces=()
+backup=()
+options=()
+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
+}
+
+package() {
+ _etc_profiled=${pkgdir}/etc/profile.d
+ mkdir -p "${pkgdir}/opt/${pkgname}-${pkgver}"
+ 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"
+}
+
+# vim:set ts=2 sw=2 et: