diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 91 |
1 files changed, 91 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..8e61cac2a146 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,91 @@ +# Maintainer: Israel Herraiz <isra@herraiz.org + +pkgbase=julia +pkgname=('julia-mkl' 'julia-mkl-docs') +pkgver=0.5.0 +pkgrel=1 +arch=('x86_64') +pkgdesc='High-level, high-performance, dynamic programming language (compiled with the Intel MKL library)' +url='http://julialang.org/' +license=('MIT') +makedepends=('python2' 'libuv' 'libunwind' 'mpfr' 'zlib' 'suitesparse-mkl' 'patchelf' 'cmake' 'pcre2' 'openssl' 'intel-mkl' 'intel-compiler-base' 'intel-fortran-compiler' 'libgit2') +options=('!emptydirs' 'staticlibs') +source=("https://github.com/JuliaLang/julia/releases/download/v$pkgver/julia-$pkgver.tar.gz") +md5sums=('9169b26bebf9844e671312daacc62db1') + +conflicts=('julia-git' 'julia') + +prepare() { + # For /etc/ld.so.conf.d/ + echo '/usr/lib/julia' > julia.conf +} + +build() { + source /opt/intel/mkl/bin/mklvars.sh intel64 + source /opt/intel/composerxe/linux/bin/compilervars.sh intel64 + + make -C $pkgbase-$pkgver prefix=/usr sysconfdir=/etc \ + USEICC=1 \ + USEIFC=1 \ + USE_INTEL_MKL=1 \ + USE_INTEL_MKL_FFT=1 \ + USE_INTEL_LIBM=1 \ + USE_SYSTEM_CURL=1 \ + USE_SYSTEM_LIBUNWIND=1 \ + USE_SYSTEM_PCRE=1 \ + USE_SYSTEM_LIBGIT2=1 \ + USE_SYSTEM_PATCHELF=1 \ + USE_SYSTEM_SUITESPARSE=1 +} + +package_julia-mkl() { + backup=('etc/ld.so.conf.d/julia.conf' 'etc/julia/juliarc.jl') + depends=('libunwind' 'mpfr' 'zlib' 'suitesparse-mkl' 'pcre2' 'libgit2' 'openssl' 'patchelf' 'intel-mkl') + optdepends=('gnuplot: If using the Gaston Package from julia') + install='sysfix.install' + + source /opt/intel/mkl/bin/mklvars.sh intel64 + source /opt/intel/composerxe/linux/bin/compilervars.sh intel64 + + make -C $pkgbase-$pkgver DESTDIR="$pkgdir" \ + prefix=/usr sysconfdir=/etc \ + USEICC=1 \ + USEIFC=1 \ + USE_INTEL_MKL=1 \ + USE_INTEL_MKL_FFT=1 \ + USE_INTEL_LIBM=1 \ + USE_SYSTEM_CURL=1 \ + USE_SYSTEM_LIBUNWIND=1 \ + USE_SYSTEM_PCRE=1 \ + USE_SYSTEM_LIBGIT2=1 \ + USE_SYSTEM_PATCHELF=1 \ + USE_SYSTEM_SUITESPARSE=1 \ + install + + # Remove duplicate man-page from julia/doc + rm -rvf "$pkgdir/usr/share/julia/doc/man" + + # For /etc/ld.so.conf.d, FS#41731 + install -Dm644 julia.conf "$pkgdir/etc/ld.so.conf.d/julia.conf" + + # Documentation and examples are in the julia-docs package + rm -rvf "$pkgdir/usr/share/doc/" + rm -rvf "$pkgdir/usr/share/julia/doc/" + rm -rvf "$pkgdir/usr/share/julia/examples/" + + cd julia-$pkgver + install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE.md" +} + +package_julia-mkl-docs() { + pkgdesc='Documentation and examples for Julia (package corresponding to the MKL version)' + cd "$pkgbase-$pkgver" + + install -d "$pkgdir/usr/share/doc" + cp -rv doc "$pkgdir/usr/share/doc/$pkgbase" + cp -rv examples "$pkgdir/usr/share/doc/$pkgbase/examples" + install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE.md" +} + +# getver: julialang.org/downloads +# vim:set ts=2 sw=2 et: |