1 # Maintainer: Sven-Hendrik Haase <svenstaro@archlinux.org>
2 # Contributor: Dario Ostuni <dario.ostuni@gmail.com>
8 pkgdesc="Compiler infrastructure and toolchain library for WebAssembly, in C++"
10 url="https://github.com/WebAssembly/binaryen"
12 makedepends=('cmake' 'ninja' 'python')
14 source=("$pkgname-$pkgver.tar.gz::https://github.com/WebAssembly/binaryen/archive/version_${pkgver}.tar.gz"
16 sha384sums=('bf33a5ab751deeee34ac9ff589dd63e829a13356e916b23ab9883672d439d0c24ea55579204f939b399c8a088650b5d0'
17 '8ccff587d33aa2f8e66cc167ab887087993cea0899921d2e7cc69372c8b659770a4f4a00e9da61c75394af002c8c7660')
20 cd binaryen-version_$pkgver
26 -DCMAKE_INSTALL_PREFIX=/usr
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