diff options
author | Dario Ostuni | 2020-05-19 19:17:54 +0200 |
---|---|---|
committer | Dario Ostuni | 2020-05-19 19:17:54 +0200 |
commit | 669ef5c3bba5ad9335823436042d11296b955520 (patch) | |
tree | 692b9a4f32c3b8828afde3fe22683da88088622c /PKGBUILD | |
parent | 69402ff79661696c6c6d1b7686093ce6f04d9eb3 (diff) | |
download | aur-669ef5c3bba5ad9335823436042d11296b955520.tar.gz |
Fix dependency issue
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -4,12 +4,11 @@ pkgver=0.16.0 pkgrel=1 pkgdesc="Python 3 extension for interface with Wasmtime/Cranelift." arch=('i686' 'x86_64' 'armv7h' 'aarch64') -url="https://github.com/bytecodealliance/wasmtime" +url="https://github.com/bytecodealliance/wasmtime-py" license=('APACHE2') -depends=('python' 'python-setuptools' 'python-wheel' 'python-setuptools-rust') -makedepends=('rustup') +depends=('python' 'python-setuptools' 'python-wheel' 'wasmtime') options=(!emptydirs) -source=("${pkgname}-${pkgver}::git+https://github.com/bytecodealliance/wasmtime.git#tag=v${pkgver}") +source=("${pkgname}-${pkgver}::git+https://github.com/bytecodealliance/wasmtime-py.git#tag=${pkgver}") sha384sums=('SKIP') prepare() { @@ -19,6 +18,7 @@ prepare() { package() { - cd "${srcdir}/${pkgname}-${pkgver}/crates/misc/py" - rustup run nightly python setup.py install --root="$pkgdir/" --optimize=1 + cd "${srcdir}/${pkgname}-${pkgver}" + python setup.py install --root="$pkgdir/" --optimize=1 + ln -sf "/usr/lib/libwasmtime.so" "${pkgdir}/""$(python -c "import setuptools as _; print(_.__path__[0][:-10])")""wasmtime/wasmtime.pyd" } |