Skip to content

Instantly share code, notes, and snippets.

@nixpulvis nixpulvis/PKGBUILD
Created May 25, 2019

Embed
What would you like to do?
wasm-pack-git (for now)
pkgname=wasm-pack-git
_pkgname=wasm-pack
pkgdesc="pack up the wasm and publish it to npm!"
pkgrel=1
pkgver=0.8.1.856
arch=('i686' 'x86_64')
conflicts=("wasm-pack")
provides=("wasm-pack")
url="https://github.com/rustwasm/wasm-pack"
license=('Apache' 'MIT')
depends=('rust' 'cargo' 'npm')
makedepends=('rust' 'cargo')
source=("$_pkgname::git+https://github.com/rustwasm/wasm-pack.git")
sha256sums=('SKIP')
pkgver() {
cd $_pkgname
echo "$(grep '^version =' Cargo.toml|head -n1|cut -d\" -f2|cut -d\- -f1).$(git rev-list --count HEAD)"
}
build() {
cd $_pkgname
env CARGO_INCREMENTAL=0 cargo build --release
}
package() {
cd $_pkgname
install -D -m755 "$srcdir/$_pkgname/target/release/wasm-pack" "$pkgdir/usr/bin/wasm-pack"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.