Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Julia PKGBUILD

View PKGBUILD
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94
# Maintainer: Lex Black <autumn-wind at web dot de>
# Contributor: Michael Jakl <jakl.michael@gmail.com>
# With contributions from many kind people at https://aur.archlinux.org/packages/julia-git/
 
pkgname=julia
pkgver=0.2.1
pkgrel=1
pkgdesc="Julia is a high-level, high-performance, dynamic programming language."
arch=('i686' 'x86_64')
url="http://julialang.org"
license=('GPL')
depends=('arpack' 'fftw' 'git' 'gmp' 'libunwind' 'mpfr' 'pcre' 'readline' 'zlib') # 'llvm' 'suitesparse' 'utf8proc' (AUR) 'intel-mkl' (AUR)
makedepends=('gcc-fortran')
optdepends=('gnuplot: If using the Gaston Package from julia')
provides=('julia')
conflicts=('julia-git' 'patchelf')
options=('!emptydirs' 'staticlibs')
source=(
"git://github.com/JuliaLang/julia.git#tag=v$pkgver"
"julia-0.2.1-readline.patch"
"julia-0.2.1-makefile.patch"
)
sha256sums=(
'SKIP'
'308d232ab62b476cf4eda0ac2890ddd9ad126d4bf420f88dab2bee6c920a98cf'
'9f5e79f195fcb659fb1493eddb9e7b257d0530cb613cf7ad74a4bb6b0cdec866'
)
 
prepare() {
cd "$srcdir/$pkgname"
patch -p1 -i "$srcdir/julia-0.2.1-readline.patch"
patch -p1 -i "$srcdir/julia-0.2.1-makefile.patch"
}
 
build() {
cd "$srcdir/$pkgname"
# llvm3.4 not supported and causes errors. Change back with 3.5
make PREFIX=/usr SYSCONFDIR=/etc \
USE_SYSTEM_LLVM=0 \
USE_SYSTEM_LIBUNWIND=1 \
USE_SYSTEM_READLINE=1 \
USE_SYSTEM_PCRE=1 \
USE_SYSTEM_LIBM=1 \
USE_SYSTEM_OPENLIBM=0 \
USE_SYSTEM_OPENSPECFUN=0 \
USE_SYSTEM_BLAS=1 \
USE_SYSTEM_LAPACK=1 \
USE_SYSTEM_FFTW=1 \
USE_SYSTEM_GMP=1 \
USE_SYSTEM_MPFR=1 \
USE_SYSTEM_ARPACK=1 \
USE_SYSTEM_SUITESPARSE=0 \
USE_SYSTEM_ZLIB=1 \
USE_SYSTEM_GRISU=0 \
USE_SYSTEM_RMATH=0 \
USE_SYSTEM_LIBUV=0 \
USE_SYSTEM_UTF8PROC=0 \
USE_MKL=0 \
USE_BLAS64=0 \
USE_LLVM_SHLIB=0
}
 
package() {
cd "$srcdir/$pkgname"
make DESTDIR=$pkgdir PREFIX=/usr SYSCONFDIR=/etc \
USE_SYSTEM_LLVM=0 \
USE_SYSTEM_LIBUNWIND=1 \
USE_SYSTEM_READLINE=1 \
USE_SYSTEM_PCRE=1 \
USE_SYSTEM_LIBM=1 \
USE_SYSTEM_OPENLIBM=0 \
USE_SYSTEM_OPENSPECFUN=0 \
USE_SYSTEM_BLAS=1 \
USE_SYSTEM_LAPACK=1 \
USE_SYSTEM_FFTW=1 \
USE_SYSTEM_GMP=1 \
USE_SYSTEM_MPFR=1 \
USE_SYSTEM_ARPACK=1 \
USE_SYSTEM_SUITESPARSE=0 \
USE_SYSTEM_ZLIB=1 \
USE_SYSTEM_GRISU=0 \
USE_SYSTEM_RMATH=0 \
USE_SYSTEM_LIBUV=0 \
USE_SYSTEM_UTF8PROC=0 \
USE_MKL=0 \
USE_BLAS64=0 \
USE_LLVM_SHLIB=0 \
install
# Remove man-page from julia/doc (one is enough)
rm -rv $pkgdir/usr/share/julia/doc/man
}
 
# vim:set ts=2 sw=2 et:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.