archrelease: copy trunk to extra-x86_64
[arch-packages.git] / cmake / trunk / PKGBUILD
blob2832fb7143abcda66177e128b325b600cc9569a9
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.26.3
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=('b09447318512b91c772e36c764049789224032c6c650289a94f6311f999ca104b617bf2dced57b723da23472f015549affabd9c8c076857490c47a1aee7eb7a0')
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