summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathon Fernyhough2018-09-02 17:16:53 +0100
committerJonathon Fernyhough2018-09-02 17:16:53 +0100
commit1f3392d148fdc659d637b4fcae6251689f932d7f (patch)
tree8ae5bf71054f4e17645404d1b018bd95f2ce6078
parentb899822501540240c84aa5722f75392ee9ec745c (diff)
downloadaur-1f3392d148fdc659d637b4fcae6251689f932d7f.tar.gz
And fix deps/deps.jl for check()
-rw-r--r--PKGBUILD16
1 files changed, 10 insertions, 6 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 0f2e8a19562..9c7e187901d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -12,13 +12,9 @@ depends=(julia julia-compat)
source=($pkgname-$pkgver.tar.gz::https://github.com/JuliaInterop/$_pkgname.jl/archive/v$pkgver.tar.gz)
sha256sums=('c7a88c94fb7a6c48d07cac152c36c8677c8a37b1f6c4e29ee65a51daaab1b9c3')
-package() {
+prepare() {
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/
-
- install -dm755 $pkgdir/usr/share/julia/environments/v1.0/$_pkgname/deps
- cat > $pkgdir/usr/share/julia/environments/v1.0/$_pkgname/deps/deps.jl <<'EOF'
+ cat >deps/deps.jl <<'EOF'
if isdefined((@static VERSION < v"0.7.0-DEV.484" ? current_module() : @__MODULE__), :Compat)
import Compat.Libdl
elseif VERSION >= v"0.7.0-DEV.3382"
@@ -36,6 +32,14 @@ function check_deps()
end
end
EOF
+
+}
+
+package() {
+ cd $_pkgname.jl-$pkgver
+ install -dm755 $pkgdir/usr/share/julia/environments/v1.0/$_pkgname/deps
+ cp -r {src,test} $pkgdir/usr/share/julia/environments/v1.0/$_pkgname/
+ install deps/deps.jl $pkgdir/usr/share/julia/environments/v1.0/$_pkgname/deps/deps.jl
}
check() {