2022-03-20 13:34:07 +01:00
|
|
|
# Maintainer: Felix Yan <felixonmars@archlinux.org>
|
|
|
|
# Contributor: Andrea Scarpino <andrea@archlinux.org>
|
|
|
|
# Contributor: Pierre Schmitz <pierre@archlinux.de>
|
|
|
|
|
|
|
|
pkgname=cmake
|
2024-05-12 21:46:14 +02:00
|
|
|
pkgver=3.29.3
|
2023-11-16 22:13:01 +01:00
|
|
|
pkgrel=1
|
2022-03-20 13:34:07 +01:00
|
|
|
pkgdesc='A cross-platform open-source make system'
|
|
|
|
arch=('x86_64')
|
|
|
|
url="https://www.cmake.org/"
|
|
|
|
license=('custom')
|
2023-07-19 23:27:27 +02:00
|
|
|
depends=('curl' 'libarchive' 'hicolor-icon-theme' 'jsoncpp' 'libjsoncpp.so' 'libuv' 'rhash' 'cppdap')
|
|
|
|
makedepends=('qt6-base' 'python-sphinx' 'emacs' 'nlohmann-json')
|
2023-09-15 03:29:39 +02:00
|
|
|
optdepends=(
|
|
|
|
'make: for unix Makefile generator'
|
|
|
|
'ninja: for ninja generator'
|
|
|
|
'qt6-base: cmake-gui'
|
|
|
|
)
|
2023-05-30 03:47:55 +02:00
|
|
|
source=("https://www.cmake.org/files/v${pkgver%.*}/${pkgname}-${pkgver}.tar.gz"
|
|
|
|
"https://www.cmake.org/files/v${pkgver%.*}/${pkgname}-${pkgver}-SHA-256.txt"{,.asc})
|
2024-05-12 21:46:14 +02:00
|
|
|
sha512sums=('930060cf484a769992ebc798d5e81984560b2cd7e163db7053181ad842656ccd0085e7e077c9c620e719d212f78283ca0db19bec5491a355d38078bbe0bac254'
|
|
|
|
'118604ac64ccd02995e6b421c256cb414637471094a72ff65d0f604cc4cc9f869f64fe1d409584925b93050373e7b69966ea91e4a9fc34b98287b0ee49eeb23c'
|
2023-05-30 03:47:55 +02:00
|
|
|
'SKIP')
|
|
|
|
validpgpkeys=(CBA23971357C2E6590D9EFD3EC8FEF3A7BFB4EDA) # Brad King <brad.king@kitware.com>
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
# upstream does not provide signed tarballs, only signed checksums
|
|
|
|
sha256sum -c --ignore-missing "${pkgname}-${pkgver}-SHA-256.txt"
|
|
|
|
}
|
2022-03-20 13:34:07 +01:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd ${pkgname}-${pkgver}
|
|
|
|
./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}-${pkgver}
|
|
|
|
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
|
|
|
|
}
|