summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 02d3a4a28e2366d38716a11a49dcbab16b4064e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Maintainer: kpcyrd <git@rxv.cc>

_gitname=wasm-gc
pkgname=wasm-gc-git
pkgver=0.0.0
pkgrel=2
pkgdesc="gc-sections for wasm"
url="https://github.com/alexcrichton/wasm-gc"
depends=('gcc-libs')
makedepends=('cargo')
provides=('wasm-gc')
conflicts=('wasm-gc')
arch=('i686' 'x86_64' 'armv6h')
license=('MIT' 'APACHE')
source=("git+https://github.com/alexcrichton/$_gitname.git")
sha256sums=('SKIP')
sha512sums=('SKIP')

build() {
  cd "$_gitname"
  cargo build --release
}

package() {
  cd "$_gitname"
  install -Dm755 "target/release/$_gitname" "$pkgdir/usr/bin/$_gitname"
  install -Dm644 LICENSE-MIT LICENSE-APACHE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}