blob: 9ea4e8c6f91fb259cb445b9fc4b8536cc6c9c58f (
plain) (
tree)
|
|
# Contributor: Valery Kartel <valery.kartel@gmail.com>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=cmake
pkgver=3.12.1
pkgrel=0
pkgdesc="Cross-platform build system"
url="https://cmake.org"
arch="all"
options="!checkroot"
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() {
cd "$builddir"
# 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() {
cd "$builddir"
CTEST_OUTPUT_ON_FAILURE=TRUE bin/ctest
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
}
sha512sums="7a0a769ef060785a8dc8c6aa272435a90a07cc8079f6c83c916da0b79d8bcdefca0d7be21f55f408ab4dfa6a57caa9ff8dec4be993145f4e3337ff392481b692 cmake-3.12.1.tar.gz"
|