# Maintainer: Natanael Copa pkgname=cmake pkgver=2.8.11.1 pkgrel=0 pkgdesc="CMake is a cross-platform open-source make system" url="http://www.cmake.org" arch="all" license="CMake" depends= makedepends="ncurses-dev" case $pkgver in *.*.*.*) _v=v${pkgver%.*.*};; *.*.*) _v=v${pkgver%.*};; esac source="http://www.cmake.org/files/$_v/cmake-${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="df5324a3b203373a9e0a04b924281a43 cmake-2.8.11.1.tar.gz" sha256sums="b7dbb86824051319b8e082d2f892ebe6d5914b4dac9b9ef1aeac5e7ed054b0bf cmake-2.8.11.1.tar.gz" sha512sums="2dae5e1a4256b332c759ba077e53fc01f8f7a3927098fbd14807ed631163bdf5286f072f2aff214e759b771c2e2365656db1718a86025b3456173715976f2904 cmake-2.8.11.1.tar.gz"