mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
39 lines
1.2 KiB
Bash
39 lines
1.2 KiB
Bash
# Maintainer: Sven-Hendrik Haase <svenstaro@gmail.com>
|
|
# Contributor: Dario Ostuni <dario.ostuni@gmail.com>
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
# - only move /usr/lib64 in package for v8
|
|
|
|
pkgname=binaryen
|
|
pkgver=87
|
|
pkgrel=1
|
|
pkgdesc="Compiler infrastructure and toolchain library for WebAssembly, in C++"
|
|
arch=('x86_64')
|
|
url="https://github.com/WebAssembly/binaryen"
|
|
license=('MIT')
|
|
depends=()
|
|
makedepends=(cmake ninja python)
|
|
source=("https://github.com/WebAssembly/binaryen/archive/version_${pkgver}.tar.gz"
|
|
"binaryen.sh")
|
|
sha384sums=('b19f2cec79ff6bea7b3aa929599e7d337af0656aef71a9c37af2e7618e309e8aea718ce5df141fed6ccd3aeb2347a823'
|
|
'fdf76d46e6ab9b915212bbca7c29e624e209de911b18ecaccc40b99a00360cd12b261f96c8655f02ec4fd28cedffbcac')
|
|
|
|
prepare() {
|
|
mkdir binaryen-version_${pkgver}/build
|
|
}
|
|
|
|
build() {
|
|
cd binaryen-version_${pkgver}/build
|
|
|
|
cmake -GNinja -DCMAKE_INSTALL_PREFIX=/usr ..
|
|
ninja
|
|
}
|
|
|
|
package() {
|
|
cd binaryen-version_${pkgver}/build
|
|
DESTDIR=${pkgdir} ninja install
|
|
[[ $CARCH == "aarch64" ]] && mv ${pkgdir}/usr/lib64 ${pkgdir}/usr/lib
|
|
|
|
install -Dm755 $srcdir/binaryen.sh $pkgdir/etc/profile.d/binaryen.sh
|
|
install -Dm644 ../LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
|
|
}
|