diff options
| author | Guillaume Horel <guillaume.horel@gmail.com> | 2016-07-02 15:33:47 -0400 |
|---|---|---|
| committer | Guillaume Horel <guillaume.horel@gmail.com> | 2016-07-02 15:33:47 -0400 |
| commit | 1c16ceb1a5d7666c05537f49e1ac2697e797b42a (patch) | |
| tree | 82c6f9c75ee91b47013872d52b39cb265ab35998 /apache_spark/PKGBUILD | |
| parent | ea9e1023d3ccaf405eef70143c7a0f6c572ac8a3 (diff) | |
| download | arch-pkgs-1c16ceb1a5d7666c05537f49e1ac2697e797b42a.tar.gz | |
better pkgbuild
Diffstat (limited to 'apache_spark/PKGBUILD')
| -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: |
