jobextra/cmake/PKGBUILD

53 lines
1.7 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.25.2
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=(c026f22cb931dd532f648f087d587f07a1843c6e66a3dfca4fb0ea21944ed33c) # cmake-3.25.2.tar.gz
#1c511d09516af493694ed9baf13c55947a36389674d657a2d5e0ccedc6b291d8) # cmake-3.25.1.tar.gz
sha512sums=('20146d06a1722c36249192944a58e4780aad334d2bc5ce2a3d8c4f24656630c5b71ca0ae7ed53587e3d46f488bd773452fa60c3fc7045fe54db2dbc6ffd86390')