59 lines
1.6 KiB
Text
59 lines
1.6 KiB
Text
# Maintainer: Felix Yan <felixonmars@archlinux.org>
|
|
# Contributor: Andrea Scarpino <andrea@archlinux.org>
|
|
# Contributor: Pierre Schmitz <pierre@archlinux.de>
|
|
|
|
pkgname=cmake
|
|
pkgver=3.31.4
|
|
pkgrel=1
|
|
pkgdesc='A cross-platform open-source make system'
|
|
arch=('x86_64')
|
|
url="https://www.cmake.org/"
|
|
license=('custom')
|
|
depends=(cppdap
|
|
curl
|
|
expat
|
|
gcc-libs
|
|
glibc
|
|
hicolor-icon-theme
|
|
jsoncpp
|
|
libarchive
|
|
libuv
|
|
ncurses
|
|
rhash
|
|
zlib)
|
|
makedepends=(emacs
|
|
git
|
|
nlohmann-json
|
|
python-sphinx
|
|
qt6-base)
|
|
optdepends=(
|
|
'make: for unix Makefile generator'
|
|
'ninja: for ninja generator'
|
|
'qt6-base: cmake-gui'
|
|
)
|
|
source=(git+https://gitlab.kitware.com/cmake/cmake.git#tag=v$pkgver?signed)
|
|
sha512sums=('bf7b0d6ce905c1dbe6775c41dcf101f55ed9f20e16c009b23e9cbaa7d553d6d86b713fd990a5d1fa80784c8f40fe0ebd4550816cfdce174b1ef62a0d5486e54f')
|
|
validpgpkeys=(CBA23971357C2E6590D9EFD3EC8FEF3A7BFB4EDA) # Brad King <brad.king@kitware.com>
|
|
|
|
build() {
|
|
cd ${pkgname}
|
|
./bootstrap --prefix=/usr \
|
|
--mandir=/share/man \
|
|
--docdir=/share/doc/cmake \
|
|
--datadir=/share/cmake \
|
|
--sphinx-man \
|
|
--sphinx-html \
|
|
--system-libs \
|
|
--qt-gui \
|
|
--parallel=$(/usr/bin/getconf _NPROCESSORS_ONLN)
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd ${pkgname}
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
rm -r "$pkgdir"/usr/share/doc/cmake/html/_sources
|
|
emacs -batch -f batch-byte-compile "${pkgdir}"/usr/share/emacs/site-lisp/cmake-mode.el
|
|
install -Dm644 Copyright.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
|
|
}
|