archrelease: copy trunk to community-any
[ArchLinux/community.git] / binaryen / trunk / PKGBUILD
blob293106bf9ba62f939de4e4b9fccc502473d7c52d
1 # Maintainer: Sven-Hendrik Haase <svenstaro@archlinux.org>
2 # Contributor: Dario Ostuni <dario.ostuni@gmail.com>
4 pkgname=binaryen
5 epoch=1
6 pkgver=113
7 pkgrel=1
8 pkgdesc="Compiler infrastructure and toolchain library for WebAssembly, in C++"
9 arch=('x86_64')
10 url="https://github.com/WebAssembly/binaryen"
11 license=('MIT')
12 makedepends=('cmake' 'ninja' 'python')
13 options=('!lto')
14 source=("$pkgname-$pkgver.tar.gz::https://github.com/WebAssembly/binaryen/archive/version_${pkgver}.tar.gz"
15         "binaryen.sh")
16 sha384sums=('bf33a5ab751deeee34ac9ff589dd63e829a13356e916b23ab9883672d439d0c24ea55579204f939b399c8a088650b5d0'
17             '8ccff587d33aa2f8e66cc167ab887087993cea0899921d2e7cc69372c8b659770a4f4a00e9da61c75394af002c8c7660')
19 build() {
20     cd binaryen-version_$pkgver
22     cmake \
23         -Bbuild \
24         -GNinja \
25         -DBUILD_TESTS=OFF \
26         -DCMAKE_INSTALL_PREFIX=/usr
27     ninja -C build
30 package() {
31     cd binaryen-version_$pkgver
32     DESTDIR="$pkgdir" ninja -C build install
34     install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
35     install -Dm755 "$srcdir"/binaryen.sh "$pkgdir"/etc/profile.d/binaryen.sh