blob: 94f822daf4f7e7dd860f2891b310eb0a15c0aeb2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
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 python-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"
|