diff options
Diffstat (limited to 'apache_spark')
| -rw-r--r-- | apache_spark/PKGBUILD | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/apache_spark/PKGBUILD b/apache_spark/PKGBUILD index b1b06c3..555cec1 100644 --- a/apache_spark/PKGBUILD +++ b/apache_spark/PKGBUILD @@ -16,9 +16,11 @@ replaces=() backup=() options=('!debug') install= -source=("http://mirror.nexcess.net/apache/$_pkgname/$_pkgname-$pkgver/$_fullpkgname.tgz") +source=("http://mirror.nexcess.net/apache/$_pkgname/$_pkgname-$pkgver/$_fullpkgname.tgz" +"https://gist.githubusercontent.com/thrasibule/87a092d244d560aa5d081ea6a0a0db4c/raw/1f4501f909a30250a8ff59e2c6f058c9ff0cdec2/kernel.json") noextract=("$_fullpkgname.tgz") -md5sums=('604936f2bd8af999d0d624b370f5c4b1') +md5sums=('604936f2bd8af999d0d624b370f5c4b1' + 'e3137862727df13ccf1194248a4f50aa') package() { _etc_profiled=${pkgdir}/etc/profile.d @@ -36,6 +38,9 @@ package() { "${_etc_profiled}/${pkgname}.sh" echo "export SPARK_HOME=/opt/$_fullpkgname" >> \ "${_etc_profiled}/${pkgname}.sh" + sed -i "s|\$SPARK_HOME|${SPARK_HOME}|;s|\$pkgver|${pkgver}|" kernel.json + mkdir -p "${pkgdir}/usr/share/jupyter/kernels/pyspark" + cp kernel.json "${pkgdir}/usr/share/jupyter/kernels/pyspark" } # vim:set ts=2 sw=2 et: |
