jobextra/cmake/PKGBUILD-arch

60 lines
1.6 KiB
Text
Raw Permalink Normal View History

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
pkgver=3.31.4
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')
2024-06-07 12:44:00 +02:00
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)
2023-09-15 03:29:39 +02:00
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')
2023-05-30 03:47:55 +02:00
validpgpkeys=(CBA23971357C2E6590D9EFD3EC8FEF3A7BFB4EDA) # Brad King <brad.king@kitware.com>
2022-03-20 13:34:07 +01:00
build() {
cd ${pkgname}
2022-03-20 13:34:07 +01:00
./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}
2022-03-20 13:34:07 +01:00
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
}