archrelease: copy trunk to extra-x86_64
[arch-packages.git] / cmake / repos / extra-x86_64 / PKGBUILD
blob86d812440265c05a3ca557074404db6514defa1b
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Andrea Scarpino <andrea@archlinux.org>
3 # Contributor: Pierre Schmitz <pierre@archlinux.de>
5 pkgname=cmake
6 pkgver=3.25.1
7 pkgrel=1
8 pkgdesc='A cross-platform open-source make system'
9 arch=('x86_64')
10 url="https://www.cmake.org/"
11 license=('custom')
12 depends=('curl' 'libarchive' 'hicolor-icon-theme' 'jsoncpp' 'libjsoncpp.so' 'libuv' 'rhash')
13 makedepends=('qt6-base' 'python-sphinx' 'emacs')
14 optdepends=('qt6-base: cmake-gui')
15 source=("https://www.cmake.org/files/v${pkgver%.*}/${pkgname}-${pkgver}.tar.gz")
16 sha512sums=('ec4203cac569e3c340bf6535d193d9ccff9c4e4d59a7a7ae5b9156172f647d9f9212bdc37b3c12cbd676b1351b9a64364c563aaa968a2f41e0f402410ed78d57')
18 build() {
19   cd ${pkgname}-${pkgver}
20   ./bootstrap --prefix=/usr \
21     --mandir=/share/man \
22     --docdir=/share/doc/cmake \
23     --datadir=/share/cmake \
24     --sphinx-man \
25     --sphinx-html \
26     --system-libs \
27     --qt-gui \
28     --parallel=$(/usr/bin/getconf _NPROCESSORS_ONLN)
29   make
32 package() {
33   cd ${pkgname}-${pkgver}
34   make DESTDIR="${pkgdir}" install
36   rm -r "$pkgdir"/usr/share/doc/cmake/html/_sources
37   emacs -batch -f batch-byte-compile "${pkgdir}"/usr/share/emacs/site-lisp/cmake-mode.el
38   install -Dm644 Copyright.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE