pkgname=cmake pkgver=3.31.2 pkgrel=1 pkgdesc="A cross-platform open-source make system" arch=('x86_64') url="https://www.cmake.org/" license=('custom') depends=('curl' 'expat' 'gcc-libs' 'glibc' 'libarchive' 'libuv' 'ncurses' 'nghttp2' 'zlib') source=(https://cmake.org/files/v${pkgver%.*}/${pkgname}-${pkgver}.tar.gz) sha256sums=(42abb3f48f37dbd739cdfeb19d3712db0c5935ed5c2aef6c340f9ae9114238a2) build() { cd ${pkgname}-${pkgver} CC=${CHOST}-gcc \ CXX=${CHOST}-g++ \ ./bootstrap \ --prefix=/usr \ --system-libs \ --mandir=/share/man \ --no-system-jsoncpp \ --no-system-cppdap \ --no-system-librhash \ --docdir=/share/doc/${pkgname}-${pkgver} \ --parallel=$(/usr/bin/getconf _NPROCESSORS_ONLN) make } package() { cd ${pkgname}-${pkgver} make DESTDIR=${pkgdir} install }