summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathon Fernyhough2019-01-05 22:15:06 +0000
committerJonathon Fernyhough2019-01-05 22:15:06 +0000
commita5d11e99904025781a0b9ac02b028d2a4e0289ef (patch)
tree65fe5404c1be466b98a6101bde5f535938e7c86b
parentabcc2cb78452a57d583adae8132f97c9f0cc4bf0 (diff)
downloadaur-a5d11e99904025781a0b9ac02b028d2a4e0289ef.tar.gz
Switch to vendored LOAD_PATH
-rw-r--r--.SRCINFO5
-rw-r--r--PKGBUILD23
2 files changed, 18 insertions, 10 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 2e319eba7f5..8c7051b7665 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,15 +1,18 @@
pkgbase = julia-zmq
pkgdesc = Julia binding to the native API of ØMQ project
pkgver = 1.0.0
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/JuliaInterop/ZMQ.jl
arch = any
license = MIT
depends = julia
depends = julia-compat
+ depends = julia-loadpath
depends = zeromq
source = julia-zmq-1.0.0.tar.gz::https://github.com/JuliaInterop/ZMQ.jl/archive/v1.0.0.tar.gz
+ source = julia-zmq-Package.toml::https://raw.githubusercontent.com/JuliaRegistries/General/ffed2d514d4e73cf0f8c700d5d33cd5f9dec9ee0/Z/ZMQ/Package.toml
sha256sums = f8c3cc104b3e8dc7ae09da9787427fb2ca45f3e4b46c98a6c8eace78216b1333
+ sha256sums = 6b51aedfcda4ecddeed07880756db0791b33bb158237fdb714ff695f1902f417
pkgname = julia-zmq
diff --git a/PKGBUILD b/PKGBUILD
index 70863b63206..4ed0a136ea7 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,15 +3,18 @@
pkgname=julia-zmq
_pkgname=ZMQ
pkgver=1.0.0
-pkgrel=1
+pkgrel=2
pkgdesc='Julia binding to the native API of ØMQ project'
arch=(any)
url=https://github.com/JuliaInterop/ZMQ.jl
license=(MIT)
-depends=(julia julia-compat zeromq)
+depends=(julia julia-compat julia-loadpath zeromq)
-source=($pkgname-$pkgver.tar.gz::https://github.com/JuliaInterop/$_pkgname.jl/archive/v$pkgver.tar.gz)
-sha256sums=('f8c3cc104b3e8dc7ae09da9787427fb2ca45f3e4b46c98a6c8eace78216b1333')
+_commit=ffed2d514d4e73cf0f8c700d5d33cd5f9dec9ee0
+source=($pkgname-$pkgver.tar.gz::https://github.com/JuliaInterop/$_pkgname.jl/archive/v$pkgver.tar.gz
+ $pkgname-Package.toml::https://raw.githubusercontent.com/JuliaRegistries/General/$_commit/${_pkgname:0:1}/$_pkgname/Package.toml)
+sha256sums=('f8c3cc104b3e8dc7ae09da9787427fb2ca45f3e4b46c98a6c8eace78216b1333'
+ '6b51aedfcda4ecddeed07880756db0791b33bb158237fdb714ff695f1902f417')
prepare() {
cd $_pkgname.jl-$pkgver
@@ -37,13 +40,15 @@ 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
+ install -d "$pkgdir"/usr/share/julia/vendor
+
+ cp -r $_pkgname.jl-$pkgver "$pkgdir"/usr/share/julia/vendor/$_pkgname
+ install -m644 $pkgname-Package.toml "$pkgdir"/usr/share/julia/vendor/$_pkgname/Project.toml
+
+ install -Dm644 $_pkgname.jl-$pkgver/LICENSE.md "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
check() {
cd $_pkgname.jl-$pkgver
- JULIA_LOAD_PATH=src:$JULIA_LOAD_PATH julia test/runtests.jl
+ HOME=$srcdir JULIA_LOAD_PATH=src: julia test/runtests.jl
}