blob: 3babcd6af7abba791b82779c23b3d0c4d29e2f3e (
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
|
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Leo <thinkabit.ukim@gmail.com>
pkgname=range-v3
pkgver=0.10.0
pkgrel=0
pkgdesc="Experimental range library for C++11/14/17"
options="!check"
url="https://github.com/ericniebler/range-v3"
arch="noarch"
license="BSL-1.0"
makedepends="cmake ninja"
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/ericniebler/range-v3/archive/$pkgver.tar.gz"
prepare() {
sed -e '/Werror/d' -i cmake/ranges_flags.cmake
default_prepare
}
build() {
if [ "$CBUILD" != "$CHOST" ]; then
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
fi
cmake -B build -G Ninja \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_SHARED_LIBS=True \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
-DRANGE_V3_EXAMPLES=OFF \
-DRANGE_V3_PERF=OFF \
-DRANGE_V3_TESTS=OFF \
-DRANGE_V3_HEADER_CHECKS=ON \
-DRANGES_MODULES=OFF \
-DRANGES_NATIVE=OFF \
-DRANGES_DEBUG_INFO=OFF \
-DRANGES_PREFER_REAL_CONCEPTS=ON \
-DRANGES_VERBOSE_BUILD=ON \
$CMAKE_CROSSOPTS
ninja -C build
}
package() {
DESTDIR="$pkgdir" ninja -C build install
}
sha512sums="4db089dcbf638eb30fa20dcf6785dd460c5a074a8912984a484592753cfee9f5b9a0e2c56b5bc5921d1b6120877aa2c83ac0a6fe428088ef2854033a635e9723 range-v3-0.10.0.tar.gz"
|