jobextra/cmake/PKGBUILD

71 lines
2.8 KiB
Bash

#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=cmake
pkgver=3.27.7
pkgrel=02
pkgdesc='A cross-platform open-source make system w/o zstd or qt-gui '
url="https://www.cmake.org/"
depends=('curl' 'libarchive' 'hicolor-icon-theme' 'jsoncpp' 'libuv' 'rhash' 'cppdap')
makedepends=('python-sphinx' 'emacs-git' 'python-sphinx-autoapi' 'nlohmann-json') # without autoapi build fails at sphinx html documents
optdepends=('make: for unix Makefile generator'
'ninja: for ninja generator')
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})
prepare() {
# upstream does not provide signed tarballs, only signed checksums
sha256sum -c --ignore-missing "${pkgname}-${pkgver}-SHA-256.txt"
}
build() {
cd ${pkgname}-${pkgver}
./bootstrap --prefix=/usr \
--mandir=/share/man \
--docdir=/share/doc/cmake \
--datadir=/share/cmake \
--system-liblzma \
--no-system-zstd \
--no-qt-gui \
--system-libs \
--parallel=$(/usr/bin/getconf _NPROCESSORS_ONLN)
make
}
# --sphinx-man \ I removed this to avoid error at sphinx html docs
# export CXXFLAGS+=" ${CPPFLAGS}" # used in the past
# --qt-gui \ # qt6-base dependency is needed for the gui
# --sphinx-html \ Build stops unable to find sphinx module to build html docs
# it still fails and there are no valid options for --no-sphinx-html ..
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
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=('custom')
validpgpkeys=(CBA23971357C2E6590D9EFD3EC8FEF3A7BFB4EDA) # Brad King <brad.king@kitware.com>
sha512sums=('2e9b83dee8f8c012be4219ab74ebaa8b8438ea55d5204237a1c9feba94c732afe7baceddb9c681672903112b1e40f7b1a86b284cfceed15f46ce8f90143dbb86'
'5f093ed51b10f530318c8b8205ff35f91443a71064008115eecce2f7e8393a3cb3b7dd1c35e5b7b58981c49b19ee708966321085a3237ec313a0865d26948e32'
'SKIP')
sha256sums=(08f71a106036bf051f692760ef9558c0577c42ac39e96ba097e7662bd4158d8e # cmake-3.27.7.tar.gz
5bb3f53db3f3f8fa0c8a4af6e555a38dbc232b81021971fa9c16fa142377224a # cmake-3.27.7-SHA-256.txt
4444e94e311fe690e0d529e7a12f6eb694b003907be0cc49268a7f35bf4f808c) # cmake-3.27.7-SHA-256.txt.asc
## 940273e2e6a1b7df85a0cf7fd7f0f55d2d01ead0b37f3d7eb0b1c133e1461ff1 cmake-3.27.7-02-x86_64.pkg.tar.lz