69 lines
2.8 KiB
Bash
69 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.26.4
|
|
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')
|
|
makedepends=('python-sphinx' 'emacs-git' python-sphinx-autoapi) # without autoapi build fails at sphinx html documents
|
|
optdepends=('qt6-base: cmake-gui')
|
|
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=(313b6880c291bd4fe31c0aa51d6e62659282a521e695f30d5cc0d25abbd5c208 # cmake-3.26.4.tar.gz
|
|
02b3c7108fe0f08310ebce0310e4adfe26d88e573ab30351c5ddceeffc5a4999 # cmake-3.26.4-SHA-256.txt
|
|
2d23224ce3858a6c68b1a22250395b445dd88f67d20f6b2a8de6fcc1acdc0d6c) # cmake-3.26.4-SHA-256.txt.asc
|
|
|
|
sha512sums=('fe817c8d5e247db3f0a9a58ee37c466a47220100d9e90711cd5d06c223cef87e41d1a756e75d1537e5f8cd010dcb8971cbeab4684b1ac12bcecf84bf7b720167'
|
|
'a7f141f75695b3594b8f5f834edf777e7877b8a33cdca602f9645568426043e634457e6ea5720ed019288e8900960c83f08789a9db7f6e9053416b235bb64e0c'
|
|
'SKIP')
|
|
|
|
## 6c8b449d62ad503101be013b82d1a8d224f8fd54cebb84319ad005ba36e00b65 cmake-3.26.4-01-x86_64.pkg.tar.lz
|