summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e9a288dc32c8fa22b36a13af7ed06751c4c13e8e (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
29
30
31
32
33
# Maintainer: kpcyrd <git@rxv.cc>

_gitname=wasm-gc
pkgname=wasm-gc-git
pkgver=0.1.0.r0.gfbdc8b1
pkgrel=1
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')

pkgver() {
  cd "$_gitname"
  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

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}"
}