summaryrefslogblamecommitdiff
path: root/user/range-v3/APKBUILD
blob: 84c9f80913bb6d3c7364ec9633400d76db4f592f (plain) (tree)
1
2
3
4


                                                  
             































                                                                                                
                                                                                                                                                                     
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=range-v3
pkgver=0.12.0
pkgrel=0
pkgdesc="Range library for C++"
url="http://ericniebler.com/2018/12/05/standard-ranges/"
arch="noarch"
license="BSL-1.0 AND NCSA AND MIT"
depends=""
makedepends="cmake doxygen"
subpackages=""
source="range-v3-$pkgver.tar.gz::https://github.com/ericniebler/range-v3/archive/$pkgver.tar.gz"

build() {
	if [ "$CBUILD" != "$CHOST" ]; then
		CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
	fi
	cmake \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DBUILD_SHARED_LIBS=True \
		-DCMAKE_BUILD_TYPE=RelWithDebugInfo \
		-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
		${CMAKE_CROSSOPTS} \
		.
	make
}

check() {
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="b8b632b8e0f2a3234ef61813212c237f648cd741e816ca57bd86f82f6459f7d755e2b70361d2aa43847874fb546a31a792ab1c3ba90292818ae7313438dc62d0  range-v3-0.12.0.tar.gz"