packager="pierre at nutyx dot org, tnut at nutyx"
description="Generate Makefiles and aims to be platform- and compiler-independent."
url="http://www.cmake.org"
name=cmake
version=3.7.2
release=1

source=($url/files/v${version%.*}/$name-$version.tar.gz)

build() {
cd $name-$version
sed -i '/CMAKE_USE_LIBUV 1/s/1/0/' CMakeLists.txt
./bootstrap --prefix=/usr \
--mandir=/share/man \
--system-libs \
--no-system-jsoncpp \
--docdir=/share/doc/cmake-$version
make
make DESTDIR=$PKG install
}
