blob: 886f5356eb2466d51cf5c0fc596faf28437e6bd5 (
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
|
# Maintainer: archibald869 <archibald869 at web dot de>
pkgname=cling-nightly
_pkgname=cling
_build_date=2019-08-27
pkgver=0.7+dev_${_build_date//-}
pkgrel=1
pkgdesc="Interactive C++ interpreter, built on the top of LLVM and Clang libraries"
arch=("i686" "x86_64")
url="https://root.cern.ch/cling"
license=("custom:Cling Release License")
provides=("cling")
conflicts=("cling")
depends=("libxml2")
optdepends=(
"python2: support for scan-view and Jupyter"
"perl: support for scan-build, ccc-analyzer and c++-analyzer"
)
source=(
"${pkgname}-${pkgver}.tar.bz2::https://root.cern.ch/download/cling/cling_${_build_date}_sources.tar.bz2"
)
sha256sums=(
"5cdc635778fc8257f6677183823adba709b64449f0319ce59879952213a1b5e1"
)
_num_cores=$(getconf _NPROCESSORS_ONLN)
build() {
mkdir -p "$srcdir/build"
cd "$srcdir/build"
cmake \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX="/opt/cling" \
-DLLVM_TARGETS_TO_BUILD="host" \
-DLLVM_ENABLE_RTTI=ON \
"$srcdir/src"
make -C tools/clang -j$_num_cores
make -C tools/cling -j$_num_cores
}
package() {
cd "$srcdir/build"
make -C tools/clang -j$_num_cores DESTDIR="$pkgdir" install
make -C tools/cling -j$_num_cores DESTDIR="$pkgdir" install
install -d "$pkgdir/usr/bin"
ln -s "/opt/cling/bin/cling" "$pkgdir/usr/bin/cling"
install -Dm644 "$srcdir/src/tools/cling/LICENSE.TXT" \
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|