blob: 3c799c249f25ab3a74d4b1b4a122bdcbaa6e72b8 (
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
|
# Maintainer: Alexander F. Rødseth <xyproto@archlinux.org>
# Contributor: Evangelos Foutras <evangelos@foutrelis.com>
pkgname=zapcc
pkgver=7.0.325000
pkgrel=3
pkgdesc='C++ compiler based on Clang, but significantly faster'
arch=('x86_64')
license=('custom')
url='https://zapcc.com/'
depends=('python' 'z3')
makedepends=('cmake' 'git' 'ninja')
conflicts=('clang')
source=("git+https://github.com/yrnkrn/zapcc.git#commit=9bd04e7")
sha256sums=('SKIP')
build() {
mkdir -p build
cd build
cmake "../$pkgname" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DLLVM_ENABLE_WARNINGS=OFF \
-DCMAKE_BUILD_TYPE=Release \
-DPYTHON_EXECUTABLE=/usr/bin/python \
-G Ninja
ninja
}
package() {
cd build
for component in clang-headers zapcc zapccs; do
DESTDIR="$pkgdir" cmake -DCOMPONENT="$component" -P ./cmake_install.cmake
done
install -Dm644 ../$pkgname/LICENSE.TXT "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
# vim: ts=2 sw=2 et:
|