description="A cross-platform open-source make system" url="http://www.cmake.org/" packager="tnut " contributors="Pierre,Fanch,Greg,Spiky" license="custom" set=(devel) makedepends=(ncurses expat libuv curl libarchive jsoncpp rhash) name=cmake version=3.28.3 source=($url/files/v${version%.*}/$name-$version.tar.gz) build() { cd $name-$version sed -i '/"lib64"/s/64//' Modules/GNUInstallDirs.cmake ./bootstrap --prefix=/usr \ --mandir=/share/man \ --system-libs \ --no-system-cppdap \ --docdir=/share/doc/cmake-$version make make DESTDIR=$PKG install install -Dm644 Copyright.txt $PKG/usr/share/licenses/$name/Copyright.txt install -Dm644 Licenses/LGPLv2.1.txt $PKG/usr/share/licenses/$name/LGPLv2.1.txt install -Dm644 Licenses/LGPLv3.txt $PKG/usr/share/licenses/$name/LGPLv3.txt install -Dm644 Licenses/README.rst $PKG/usr/share/licenses/$name/README.rst }