blob: 38bdbf3adcf637fca7eb5d19b1d236e38410c951 (
plain) (
tree)
|
|
# Contributor: Valery Kartel <valery.kartel@gmail.com>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=cmake
pkgver=3.15.2
pkgrel=0
pkgdesc="Cross-platform build system"
url="https://cmake.org"
arch="all"
license="CMake"
makedepends="ncurses-dev curl-dev expat-dev zlib-dev bzip2-dev libarchive-dev
libuv-dev xz-dev rhash-dev"
checkdepends="musl-utils file"
subpackages="$pkgname-doc"
case $pkgver in
*.*.*.*) _v=v${pkgver%.*.*};;
*.*.*) _v=v${pkgver%.*};;
esac
source="https://cmake.org/files/$_v/cmake-${pkgver}.tar.gz"
_parallel_opt() {
local i n
for i in $MAKEOPTS; do
case "$i" in
-j*) n=${i#-j};;
esac;
done
[ -n "$n" ] && echo "--parallel $n"
}
build() {
# jsoncpp needs cmake to build so to avoid recursive build
# dependency, we use the bundled version of jsoncpp
./bootstrap \
--prefix=/usr \
--mandir=/share/man \
--datadir=/share/$pkgname \
--docdir=/share/doc/$pkgname \
--system-libs \
--no-system-jsoncpp \
$(_parallel_opt)
make
}
check() {
# skip CTestTestUpload: tries to upload something during check...
CTEST_OUTPUT_ON_FAILURE=TRUE bin/ctest -E CTestTestUpload
}
package() {
make DESTDIR="$pkgdir" install
}
sha512sums="154494fe4c8673c3b17a6f1823c55f06fbb35d7ea048b63a5c3e3157108f222693cf1606c879a3cf425edea686dfe19e27974b338e5d281ec118b1a51c632ccc cmake-3.15.2.tar.gz"
|