diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-04-17 16:06:54 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-04-17 16:16:32 +0200 |
commit | b93e1faa9d05ff2200964aaea546237b4e479a73 (patch) | |
tree | 2af9fcf03bb337fdbb9ddfcbaa158dd0e4795efa /main/compiler-rt/APKBUILD | |
parent | 3fa7615b906a3d6e3b3c8ac244b54ed3dd27f90c (diff) | |
download | aports-b93e1faa9d05ff2200964aaea546237b4e479a73.tar.bz2 aports-b93e1faa9d05ff2200964aaea546237b4e479a73.tar.xz |
main/compiler-rt: improve abuild
Diffstat (limited to 'main/compiler-rt/APKBUILD')
-rw-r--r-- | main/compiler-rt/APKBUILD | 55 |
1 files changed, 16 insertions, 39 deletions
diff --git a/main/compiler-rt/APKBUILD b/main/compiler-rt/APKBUILD index 3b40d6f116..3aaeffde34 100644 --- a/main/compiler-rt/APKBUILD +++ b/main/compiler-rt/APKBUILD @@ -7,57 +7,34 @@ pkgdesc="LLVM compiler-rt runtime libraries" arch="all" url="http://llvm.org/" license="UOI-NCSA" -depends="" -depends_dev="" -makedepends="$depends_dev - cmake - python2 - 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 -} +makedepends="cmake llvm llvm-dev llvm-static python2" +source="http://llvm.org/releases/$pkgver/$pkgname-$pkgver.src.tar.xz" +builddir="$srcdir/$pkgname-$pkgver.src" build() { - mkdir -p "$_builddir" - cd "$_builddir" - cmake \ + mkdir -p "$builddir"/build + cd "$builddir"/build + + cmake .. \ -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_INSTALL_LIBDIR=lib \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCOMPILER_RT_BUILD_SANITIZERS=OFF \ - "${_srcdir}" || return 1 - + || return 1 make || return 1 } package() { - cd "$_builddir" + cd "$builddir"/build + make DESTDIR="$pkgdir" install || return 1 - mkdir -p "$pkgdir"/usr/lib/clang || return 1 + + cd "$pkgdir" + + mkdir -p usr/lib/clang case "$CARCH" in - ppc64le) ;; - *) mv "$pkgdir"/usr/lib/linux "$pkgdir"/usr/lib/clang/$pkgver;; + ppc64le) ;; + *) mv usr/lib/linux usr/lib/clang/$pkgver;; esac } - sha512sums="bed3da5f8594c4bf71af406419fbeaf7ed5d8bf46adb305233a298271d34a9af1072bcb47d474ac19bb862cc7c7bc9e1d89bc1567133553f29480030cad1cf75 compiler-rt-3.8.1.src.tar.xz" |