Commit 11cc8881 authored by Jakub Jirutka's avatar Jakub Jirutka

testing/llvm-libunwind: new aport

http://llvm.org/
LLVM version of libunwind library
parent 0c568fca
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=llvm-libunwind
_pkgname=libunwind
pkgver=3.8.1
pkgrel=0
pkgdesc="LLVM version of libunwind library"
url="http://llvm.org/"
arch="all"
license="BSD"
depends_dev="!libunwind-dev"
makedepends="cmake llvm-dev"
subpackages="$pkgname-dev"
source="http://www.llvm.org/releases/$pkgver/$_pkgname-$pkgver.src.tar.xz"
builddir="$srcdir/$_pkgname-$pkgver.src"
options="!check"
build() {
local flag; for flag in 0 1; do
mkdir -p "$builddir"/build-$flag
cd "$builddir"/build-$flag
cmake .. \
-DCMAKE_BUILD_TYPE=MinSizeRel \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
-DCMAKE_C_FLAGS="$CFLAGS" \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DLIBUNWIND_ENABLE_SHARED=$flag
make
done
}
package() {
local flag; for flag in 0 1; do
make install -C "$builddir"/build-$flag DESTDIR="$pkgdir"
done
cd "$builddir"
mkdir -p "$pkgdir"/usr/include
cp include/*.h "$pkgdir"/usr/include/
}
sha512sums="2a60d7c4b0aee6c58f50089ac9fa2b756ab1d74faaee32f7436ddace4510589c7ffdd20478919966ed2fa8a23ee1b5d1b26115dbd8ee2834b00b5bcd61d00b14 libunwind-3.8.1.src.tar.xz"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment