# Maintainer: Sven-Hendrik Haase # Contributor: Julius Michaelis pkgname=wasmer pkgver=3.3.0 pkgrel=1 pkgdesc="Universal Binaries Powered by WebAssembly" arch=('x86_64') url="https://github.com/wasmerio/wasmer" license=('MIT') depends=('gcc-libs' 'zlib' 'ncurses' 'libffi' 'libxkbcommon') makedepends=('rustup' 'cmake') source=("$pkgname-$pkgver.tar.gz::https://github.com/wasmerio/wasmer/archive/refs/tags/v${pkgver}.tar.gz" wasmer-fix-install-target.patch) sha512sums=('f0c4ace0e9d62bd79a73cf414995c4c27c82e526c7469c731aa591917eb51d9a7efe9096f0436aaf47b5ff7c185c61f881a296e3d8c5ccb1082fe9e48779b684' 'fef3788413e4ab32c6063d0038479c94004a85cd997ff954e3e9d9da835e704f3b9423b640a2134f4bdd5b5ad1b253bce4e3463e34fcc46c9ce6d9e0d034673b') options=('staticlibs' '!lto') prepare() { cd "$pkgname-$pkgver" patch -Np1 -i "$srcdir/wasmer-fix-install-target.patch" } build() { cd "$pkgname-$pkgver" # Activate LLVM once # https://github.com/TheDan64/inkwell/issues/406 lands. make ENABLE_CRANELIFT=1 ENABLE_LLVM=0 WASMER_INSTALL_PREFIX=/usr } check() { cd "$pkgname-$pkgver" make test-compilers test-examples } package() { cd "$pkgname-$pkgver" make DESTDIR="$pkgdir"/usr install } # vim:set ts=2 sw=2 et: