diff options
author | Jonathon Fernyhough | 2018-09-02 17:03:21 +0100 |
---|---|---|
committer | Jonathon Fernyhough | 2018-09-02 17:03:21 +0100 |
commit | b3942da9ae8053d579992a7f2a0d61f5b037c4c4 (patch) | |
tree | a46dc1c9bdd4db542dc5e0dafcb6f584c41d34ab /PKGBUILD | |
download | aur-b3942da9ae8053d579992a7f2a0d61f5b037c4c4.tar.gz |
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c2fd488ff0ca --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,24 @@ +# Maintainer: Jonathon Fernyhough <jonathon_at_manjaro dot_org> + +pkgname=julia-primes +_pkgname=Primes +pkgver=0.4.0 +pkgrel=1 +arch=(any) +url=https://github.com/JuliaMath/Primes.jl +license=(MIT) +depends=(julia julia-compat julia-datastructures) + +source=($pkgname-$pkgver.tar.gz::https://github.com/JuliaMath/$_pkgname.jl/archive/v$pkgver.tar.gz) +sha256sums=('489f5c77fc2fceb00b2d8c2571b1e85808322c8e762a5d1712e8bfbfb3c8bc36') + +package() { + cd $_pkgname.jl-$pkgver + install -dm755 $pkgdir/usr/share/julia/environments/v1.0/$_pkgname + cp -r {src,test} $pkgdir/usr/share/julia/environments/v1.0/$_pkgname/ +} + +check() { + cd $_pkgname.jl-$pkgver + JULIA_LOAD_PATH=src:$JULIA_LOAD_PATH julia test/runtests.jl +} |