diff options
Diffstat (limited to 'apache_spark')
| -rw-r--r-- | apache_spark/PKGBUILD | 40 |
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: |
