blob: 9b38a7c9dd8cc1a505e148089ef080bbf38a03a5 (
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
|
# Contributor: Bartłomiej Piotrowski <bpiotrowski@alpinelinux.org>
# Maintainer:
pkgname=lldb
pkgver=3.8.0
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"
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"
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="a5da35ed9cc8c8817ee854e3dbfba00e lldb-3.8.0.src.tar.xz
985443fb4b6ad8742743ff8ea4856ac1 lldb-3.8-alpine.patch
78785ba3c6a19b3f805abd261109a595 D15067.id41365.patch"
sha256sums="e3f68f44147df0433e7989bf6ed1c58ff28d7c68b9c47553cb9915f744785a35 lldb-3.8.0.src.tar.xz
bc9c8ba97e5ee9f9e29946b1cc611a75a3a8ba4fa4e2727e4514b5c8b0c6ca14 lldb-3.8-alpine.patch
c6dd7dee0856f2ea20bd697f8aa3b09cef04fd32ff2daa9e3625ef69f5bab61f D15067.id41365.patch"
sha512sums="a491209ae12b0c7d938ebd94362396a50922326ed24ed11f71b1f19b61274a34a92d2bd46857b44081e7fa3e6d0a641d148bd4022f8edf71f80ff2aa7a55ebef lldb-3.8.0.src.tar.xz
b935be858c45958018ed79557f8061dee18d0949beaff4c717233497f86432c7811960c5a656772a9858e314122049121985cd8333758c508a806653b9200c1b lldb-3.8-alpine.patch
3c10e8b059d5db12776f066b679c328e54bc40d139830c4a49ec35acfa6b9775b1544fd1cb83cc1c0f449b28657c57c2d3d92d08f4c373d4ea413aed5bb3a4f9 D15067.id41365.patch"
|