#!/usr/bin/bash # JOBoRun : Jwm OpenBox Obarun RUNit # Maintainer : Joe Bo Run # PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname" # Website : https://pozol.eu #-----------------------------------------| DESCRIPTION |--------------------------------------- pkgname=cmake pkgver=3.23.1 pkgrel=01 pkgdesc='A cross-platform open-source make system' arch=('x86_64') url="https://www.cmake.org/" depends=('curl' 'libarchive' 'hicolor-icon-theme' 'jsoncpp' 'libuv' 'rhash') makedepends=( 'python-sphinx' 'emacs-git') optdepends=('qt6-base: cmake-gui') source=("https://www.cmake.org/files/v${pkgver%.*}/${pkgname}-${pkgver}.tar.gz") build() { cd ${pkgname}-${pkgver} # export CXXFLAGS+=" ${CPPFLAGS}" ./bootstrap --prefix=/usr \ --mandir=/share/man \ --docdir=/share/doc/cmake \ --datadir=/share/cmake \ --sphinx-man \ --sphinx-html \ --system-libs \ --parallel=$(/usr/bin/getconf _NPROCESSORS_ONLN) make } # --qt-gui \ 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 } #---- license gpg-key sha256sums ---- license=('custom') sha256sums=(33fd10a8ec687a4d0d5b42473f10459bb92b3ae7def2b745dc10b192760869f3) # cmake-3.23.1.tar.gz