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
|
2023-08-27 08:14:38 +02:00
|
|
|
pkgver=3.27.4
|
2022-08-11 05:51:42 +02: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')
|
2022-03-20 13:34:07 +01:00
|
|
|
optdepends=('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})
|
2023-08-27 08:14:38 +02:00
|
|
|
sha512sums=('fc04b041f5c73b0a969ba09251e00e20f33e7a76460630d60e95ce08086c6b41b82315bd8782c19070b5f12a4290858825687f816b69ad5df8101053b4a2b48a'
|
|
|
|
'ecd9e60edee28dd272e8afcc7b0b2240e19f0676b9d634dbe02727bade880103b4a03a1f52a757264e825984a4c4bf7d290df5b32e9b1204555b56afb33d488f'
|
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
|
|
|
|
}
|