diff --git a/wasm-pack/.footprint b/wasm-pack/.footprint new file mode 100644 index 000000000..9307084f6 --- /dev/null +++ b/wasm-pack/.footprint @@ -0,0 +1,3 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +-rwxr-xr-x root/root usr/bin/wasm-pack diff --git a/wasm-pack/.signature b/wasm-pack/.signature new file mode 100644 index 000000000..88e034caa --- /dev/null +++ b/wasm-pack/.signature @@ -0,0 +1,5 @@ +untrusted comment: verify with /etc/ports/contrib.pub +RWSagIOpLGJF36nFQoCHXaWmwXs7EKdJfpeDMkz2n92jkzFXMYrjJb9R9f98vPVud8yga1ku/edvFnk77heYlTy6adnmp6/tvw8= +SHA256 (Pkgfile) = d6efebf30f975eef439fc80069c0af036486d694e7666ae6229f62dec8f0c1a3 +SHA256 (.footprint) = f2b9234a02a9698b9c680005544c4e6cedbe99fa6eff3ec7257d2e480555c390 +SHA256 (wasm-pack-0.13.0.tar.gz) = d9eeb1116a584afc50ccb7c4ca15e0256453d4d2b4bc437b83f312b78432fdab diff --git a/wasm-pack/Pkgfile b/wasm-pack/Pkgfile new file mode 100644 index 000000000..ec24c894b --- /dev/null +++ b/wasm-pack/Pkgfile @@ -0,0 +1,18 @@ +# Description: Your favorite rust -> wasm workflow tool! +# URL: https://github.com/rustwasm/wasm-pack +# Maintainer: Tim Biermann, tbier at posteo dot de +# Depends on: rust + +name=wasm-pack +version=0.13.0 +release=1 +source=(https://github.com/rustwasm/wasm-pack/archive/v$version/$name-$version.tar.gz) + +build() { + prt-get isinst sccache && export RUSTC_WRAPPER=/usr/bin/sccache + [[ ! -e $PKGMK_SOURCE_DIR/rust ]] && mkdir $PKGMK_SOURCE_DIR/rust + + cargo build --release --manifest-path $name-$version/Cargo.toml + + install -Dt $PKG/usr/bin $name-$version/target/release/$name +}