49 lines
1.4 KiB
Bash
49 lines
1.4 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.23.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=(f316b40053466f9a416adf981efda41b160ca859e97f6a484b447ea299ff26aa) # cmake-3.23.2.tar.gz
|
|
|
|
|