blob: 8473fb2a68f7d6b26dbbbbebcfa399cc8919ce40 (
plain) (
tree)
|
|
# Contributor: Valery Kartel <valery.kartel@gmail.com>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=cmake
pkgver=3.14.5
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() {
CTEST_OUTPUT_ON_FAILURE=TRUE bin/ctest
}
package() {
make DESTDIR="$pkgdir" install
}
sha512sums="9acd2de17db86052801194cac570bfc104320c249b83058aa59554b42c3d5af9c9293d1c069f3fe8512a80103d511186d840168cbc190ce9584ca99cb9b11e46 cmake-3.14.5.tar.gz"
|