# $Id: PKGBUILD 115930 2014-07-18 20:57:42Z arodseth $ # Maintainer: Alexander Rødseth # Contributor: Lex Black # Contributor: Michael Jakl # Contributor: devmotion pkgname=julia pkgver=0.3.0_rc1 pkgrel=1 pkgdesc='High-level, high-performance, dynamic programming language' arch=('x86_64' 'i686') url='http://julialang.org' license=('GPL') depends=('arpack' 'fftw' 'git' 'gmp' 'libunwind' 'mpfr' 'pcre' 'readline' 'zlib') makedepends=('gcc-fortran' 'python2' 'libuv' 'setconf') optdepends=('gnuplot: If using the Gaston Package from julia') options=('!emptydirs' 'staticlibs') source=("git://github.com/JuliaLang/julia.git#tag=v${pkgver/_/-}") install=sysfix.install sha256sums=('SKIP') prepare() { # Fix for FS#40736 [ $CARCH = x86_64 ] && (setconf "$pkgname/Make.inc" JULIA_CPU_TARGET core2) || true } build() { make -C "$pkgname" 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() { make -C "$pkgname" 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 duplicate man-page from julia/doc rm -rv "$pkgdir/usr/share/julia/doc/man" # Fix wonky permission chmod 644 "$pkgdir/usr/lib/julia/libuv.a" } # vim:set ts=2 sw=2 et: