diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-04-22 01:53:04 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-04-22 02:45:59 +0200 |
commit | bcf2365f6d4744f3b0be6854e098f280f41b5c1b (patch) | |
tree | 72aa17ecc4a7fbd8a1b7daa04aa6298dba52f34e /testing/lldb/APKBUILD | |
parent | c428bb604472b3d18095628bc9b04583a167322a (diff) | |
download | aports-bcf2365f6d4744f3b0be6854e098f280f41b5c1b.tar.bz2 aports-bcf2365f6d4744f3b0be6854e098f280f41b5c1b.tar.xz |
testing/lldb: move from unmaintained
Diffstat (limited to 'testing/lldb/APKBUILD')
-rw-r--r-- | testing/lldb/APKBUILD | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/testing/lldb/APKBUILD b/testing/lldb/APKBUILD new file mode 100644 index 0000000000..789ba80d0f --- /dev/null +++ b/testing/lldb/APKBUILD @@ -0,0 +1,71 @@ +# Contributor: Bartłomiej Piotrowski <bpiotrowski@alpinelinux.org> +# Maintainer: + +pkgname=lldb +pkgver=3.8.1 +pkgrel=0 +pkgdesc="Next generation, high-performance debugger" +arch="all" +url="http://llvm.org/" +license="UOI-NCSA" +makedepends="clang clang-libs clang-dev cmake doxygen libedit-dev libffi-dev + libxml2-dev linux-headers llvm llvm-libs llvm-dev llvm-static ncurses-dev + ninja python2-dev swig" +subpackages="$pkgname-dev py-$pkgname:py $pkgname-libs" +source="http://llvm.org/releases/$pkgver/lldb-$pkgver.src.tar.xz + lldb-3.8-alpine.patch + D15067.id41365.patch + musl-include-ptrace.aarch64.patch" +builddir="$srcdir/build" + +_srcdir="$srcdir/lldb-$pkgver.src" + +prepare() { + local builddir="$_srcdir" + default_prepare +} + +build() { + mkdir -p "$builddir" + cd "$builddir" + + cmake -G Ninja -Wno-dev \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DLLVM_LINK_LLVM_DYLIB:BOOL=ON \ + "$_srcdir" || return 1 + + ninja || return 1 +} + +package() { + cd "$builddir" + DESTDIR="$pkgdir" ninja install || return 1 +} + +py() { + depends="py-six" + + mkdir -p "$subpkgdir/usr/lib" + mv "$pkgdir/usr/lib/python2.7" "$subpkgdir/usr/lib" || return 1 + + rm "$subpkgdir/usr/lib/python2.7/site-packages/six.py" + + python2 -m compileall \ + "$subpkgdir/usr/lib/python2.7/site-packages/lldb" || return 1 + python2 -O -m compileall \ + "$subpkgdir/usr/lib/python2.7/site-packages/lldb" || return 1 +} + +md5sums="9e4787b71be8e432fffd31e13ac87623 lldb-3.8.1.src.tar.xz +985443fb4b6ad8742743ff8ea4856ac1 lldb-3.8-alpine.patch +78785ba3c6a19b3f805abd261109a595 D15067.id41365.patch +f13ad6da35dba8fe7bc299b2465f1456 musl-include-ptrace.aarch64.patch" +sha256sums="349148116a47e39dcb5d5042f10d8a6357d2c865034563283ca512f81cdce8a3 lldb-3.8.1.src.tar.xz +bc9c8ba97e5ee9f9e29946b1cc611a75a3a8ba4fa4e2727e4514b5c8b0c6ca14 lldb-3.8-alpine.patch +c6dd7dee0856f2ea20bd697f8aa3b09cef04fd32ff2daa9e3625ef69f5bab61f D15067.id41365.patch +6038588b2089bfdbf1a0168208a443d8832622188076e79f3d2c2545eb73fc53 musl-include-ptrace.aarch64.patch" +sha512sums="d73c55daed6ef5e5ca784c7010f2d75be26024b14fa61a2861a8a6cbe129e417fb7be2a3b532e17e9d7de98ae38ce6a689d8166049eff365fb04f4bd772758f3 lldb-3.8.1.src.tar.xz +b935be858c45958018ed79557f8061dee18d0949beaff4c717233497f86432c7811960c5a656772a9858e314122049121985cd8333758c508a806653b9200c1b lldb-3.8-alpine.patch +3c10e8b059d5db12776f066b679c328e54bc40d139830c4a49ec35acfa6b9775b1544fd1cb83cc1c0f449b28657c57c2d3d92d08f4c373d4ea413aed5bb3a4f9 D15067.id41365.patch +1613a1cb042edd430aba6b86e4971ebb01f7d2bc3f13a5a1264cb94da7612188897e9dcaaa9233be8af5c8f4bad013dd0cfb821e323cd73dfe07fe125869ccef musl-include-ptrace.aarch64.patch" |