diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2016-03-21 16:40:34 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2016-03-22 10:21:07 +0000 |
commit | a86c04789aeec7cac077704f93423e34a3bfd638 (patch) | |
tree | 146042d33fb091dacf016f276c661f042b58d433 /main/compiler-rt | |
parent | f587789bd44d4fe0f05c2d2802a1d546896fca70 (diff) | |
download | aports-a86c04789aeec7cac077704f93423e34a3bfd638.tar.bz2 aports-a86c04789aeec7cac077704f93423e34a3bfd638.tar.xz |
main/compiler-rt: split out from llvm package
Diffstat (limited to 'main/compiler-rt')
-rw-r--r-- | main/compiler-rt/APKBUILD | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/main/compiler-rt/APKBUILD b/main/compiler-rt/APKBUILD new file mode 100644 index 0000000000..053361a917 --- /dev/null +++ b/main/compiler-rt/APKBUILD @@ -0,0 +1,62 @@ +# Contributor Travis Tilley <ttilley@gmail.com> +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=compiler-rt +pkgver=3.8.0 +pkgrel=0 +pkgdesc="LLVM compiler-rt runtime libraries" +arch="all" +url="http://llvm.org/" +license="UOI-NCSA" +depends="" +depends_dev="" +makedepends="$depends_dev + cmake + python + llvm + llvm-dev + llvm-static + " +install= +subpackages="" +source="http://llvm.org/releases/$pkgver/compiler-rt-$pkgver.src.tar.xz + " +_builddir="$srcdir"/build +_srcdir="$srcdir"/compiler-rt-$pkgver.src + +prepare() { + msg "Patching compiler-rt..." + cd "$_srcdir" || return 1 + for i in $source; do + case $i in + *.patch) + msg "Applying $i..." + patch -s -p1 -N -i "$srcdir"/$i || return 1 + ;; + esac + done +} + +build() { + mkdir -p "$_builddir" + cd "$_builddir" + cmake \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCOMPILER_RT_BUILD_SANITIZERS=OFF \ + "${_srcdir}" || return 1 + + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + mkdir -p "$pkgdir"/usr/lib/clang || return 1 + mv "$pkgdir"/usr/lib/linux "$pkgdir"/usr/lib/clang/$pkgver +} + + +md5sums="d6fcbe14352ffb708e4d1ac2e48bb025 compiler-rt-3.8.0.src.tar.xz" +sha256sums="c8d3387e55f229543dac1941769120f24dc50183150bf19d1b070d53d29d56b0 compiler-rt-3.8.0.src.tar.xz" +sha512sums="21ba548b6b35a79aa291adba7f83db14c33855fa3cf376f2ad75bd22bb454501b74f0ea4f71bc03a864135862c800b101d3cd790e54e687c2a3459c64218b9c3 compiler-rt-3.8.0.src.tar.xz" |