67 lines
2.5 KiB
Bash
67 lines
2.5 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.28.1
|
|
pkgrel=01
|
|
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>
|
|
|
|
sha256sums=(15e94f83e647f7d620a140a7a5da76349fc47a1bfed66d0f5cdee8e7344079ad # cmake-3.28.1.tar.gz
|
|
9a103d6e58cedc3662148f4a08b1a00bc50710b114df158eed613c8c5cf712ea # cmake-3.28.1-SHA-256.txt
|
|
f2b256b2b92605ccfac80e3a19a045cf1bce8c3ea7c5bfdd10b443d77c90b953) # cmake-3.28.1-SHA-256.txt.asc
|
|
|
|
## 5727c81bef81ea5778188c80b1a0b5be50f6e1bacba8f10a7f947f0ffe325c62 cmake-3.28.1-01-x86_64.pkg.tar.lz
|
|
|