# Maintainer: Natanael Copa pkgname=cmake pkgver=2.8.3 pkgrel=0 pkgdesc="CMake is a cross-platform open-source make system" url="http://www.cmake.org" license="CMake" depends= makedepends="ncurses-dev" source="http://www.$pkgname.org/files/v${pkgver%.*}/$pkgname-$pkgver.tar.gz" subpackages="$pkgname-doc" 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 $startdir/src/$pkgname-$pkgver # bug in cmake. # http://www.mail-archive.com/cmake@cmake.org/msg09515.html # export CC="gcc" # export CXX="g++" ./bootstrap --prefix=/usr \ --mandir=/share/man \ --docdir=/share/cmake-${pkgver%.*}/doc \ $(parallel_opt) make || return 1 } package() { cd $startdir/src/$pkgname-$pkgver make DESTDIR="$pkgdir" install } md5sums="a76a44b93acf5e3badda9de111385921 cmake-2.8.3.tar.gz"