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.3
|
|
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=(72b7570e5c8593de6ac4ab433b73eab18c5fb328880460c86ce32608141ad5c1 # cmake-3.28.3.tar.gz
|
|
03c6c8e776a41ff5cc56f27ae107d067106269aff6ef7ddad5e47efba2195914 # cmake-3.28.3-SHA-256.txt
|
|
48f4a16e25b6c185a48183aee6c4ed590712b619fc769cfaea022693aa2025ad) # cmake-3.28.3-SHA-256.txt.asc
|
|
|
|
## 925a810a699edbae25b022d822f4c26baf7c1e5b98974f85402a618a6d0490e6 cmake-3.28.3-01-x86_64.pkg.tar.lz
|
|
|