[arch-commits] Commit in (4 files)

Orhun Parmaksiz orhun at gemini.archlinux.org
Sat Jan 15 20:08:59 UTC 2022


    Date: Saturday, January 15, 2022 @ 20:08:59
  Author: orhun
Revision: 1104652

addpkg: wasm-pack 0.10.2-2

Added:
  wasm-pack/
  wasm-pack/repos/
  wasm-pack/trunk/
  wasm-pack/trunk/PKGBUILD

----------+
 PKGBUILD |   33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

Added: wasm-pack/trunk/PKGBUILD
===================================================================
--- wasm-pack/trunk/PKGBUILD	                        (rev 0)
+++ wasm-pack/trunk/PKGBUILD	2022-01-15 20:08:59 UTC (rev 1104652)
@@ -0,0 +1,33 @@
+# Maintainer: Orhun Parmaksız <orhun at archlinux.org>
+# Contributor: Dario Ostuni <dario.ostuni at gmail.com>
+
+pkgname=wasm-pack
+pkgver=0.10.2
+pkgrel=2
+pkgdesc="Your favorite rust -> wasm workflow tool!"
+arch=('x86_64')
+url="https://github.com/rustwasm/wasm-pack"
+license=('MIT' 'Apache')
+depends=('bzip2' 'curl')
+makedepends=('cargo' 'openssl')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
+sha384sums=('61886496539a75489bad879980d9e129bf04843bdca6c1368861048a740815526300c2daae0d5f6b4a44cce02ca9f21a')
+
+prepare() {
+  cd "$pkgname-$pkgver"
+  cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+  cargo build --frozen --release --no-default-features --features sys-openssl
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+  install -Dm 755 "target/release/$pkgname" -t "$pkgdir/usr/bin"
+  install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
+  install -Dm 644 LICENSE-MIT -t "$pkgdir/usr/share/licenses/$pkgname"
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list