[arch-commits] Commit in wasm-bindgen/trunk (PKGBUILD)
Orhun Parmaksiz
orhun at gemini.archlinux.org
Wed Jun 29 22:11:25 UTC 2022
Date: Wednesday, June 29, 2022 @ 22:11:25
Author: orhun
Revision: 1241532
upgpkg: wasm-bindgen 0.2.81-2: enable tests
Modified:
wasm-bindgen/trunk/PKGBUILD
----------+
PKGBUILD | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-06-29 22:11:16 UTC (rev 1241531)
+++ PKGBUILD 2022-06-29 22:11:25 UTC (rev 1241532)
@@ -4,7 +4,7 @@
pkgname=wasm-bindgen
pkgver=0.2.81
-pkgrel=1
+pkgrel=2
pkgdesc="Interoperating JS and Rust code"
arch=('x86_64')
url="https://github.com/rustwasm/wasm-bindgen"
@@ -13,8 +13,10 @@
depends=('rust-wasm' 'nodejs')
makedepends=('cargo')
source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz"
+ "$pkgname-$pkgver-fix-tests.patch::$url/commit/f19fd27988d6393dceb183386eca36a2e6156bc6.patch"
"Cargo.lock")
sha256sums=('301652b8854fe63cf3af1c570b0111fe6788d0d158b5725549df2bb592749f2c'
+ '2ea60a70385c8b6f61ae23580bc4b5896194d10d5d8617cbb8258d21e3cbe4ce'
'864c8053da46756e9b9268136bb6a898455c7d21c5220095be9170fa36cf2de3')
prepare() {
@@ -21,6 +23,7 @@
# https://github.com/rustwasm/wasm-bindgen/issues/1819
cp Cargo.lock "$pkgname-$pkgver"
cd "$pkgname-$pkgver/crates/cli"
+ patch -Np3 -i "$srcdir/$pkgname-$pkgver-fix-tests.patch"
cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
}
@@ -29,11 +32,10 @@
cargo build --frozen --release --all-features
}
-# https://github.com/rustwasm/wasm-bindgen/issues/2946
-#check() {
-# cd "$pkgname-$pkgver/crates/cli"
-# cargo test --frozen --all-features
-#}
+check() {
+ cd "$pkgname-$pkgver/crates/cli"
+ cargo test --frozen --all-features
+}
package() {
cd "$pkgname-$pkgver"
More information about the arch-commits
mailing list