Date: Tuesday, March 14, 2023 @ 15:23:57
Author: arojas
Revision: 470825
archrelease: copy trunk to testing-x86_64
Added:
cmake/repos/testing-x86_64/
cmake/repos/testing-x86_64/PKGBUILD
(from rev 470824, cmake/trunk/PKGBUILD)
----------+
PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
Copied: cmake/repos/testing-x86_64/PKGBUILD (from rev 470824,
cmake/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2023-03-14 15:23:57 UTC (rev 470825)
@@ -0,0 +1,39 @@
+# Maintainer: Felix Yan <[email protected]>
+# Contributor: Andrea Scarpino <[email protected]>
+# Contributor: Pierre Schmitz <[email protected]>
+
+pkgname=cmake
+pkgver=3.26.0
+pkgrel=1
+pkgdesc='A cross-platform open-source make system'
+arch=('x86_64')
+url="https://www.cmake.org/"
+license=('custom')
+depends=('curl' 'libarchive' 'hicolor-icon-theme' 'jsoncpp' 'libjsoncpp.so'
'libuv' 'rhash')
+makedepends=('qt6-base' 'python-sphinx' 'emacs')
+optdepends=('qt6-base: cmake-gui')
+source=("https://www.cmake.org/files/v${pkgver%.*}/${pkgname}-${pkgver}.tar.gz")
+sha512sums=('c9d166989abbae71002fe2fbe589c18794a0d6d2ff61fd197c473ff593066a1a17d12889cd875d63fa8824327c8ad165cb03d1f17e517dcef6b2de3b0f0ee789')
+
+build() {
+ cd ${pkgname}-${pkgver}
+ ./bootstrap --prefix=/usr \
+ --mandir=/share/man \
+ --docdir=/share/doc/cmake \
+ --datadir=/share/cmake \
+ --sphinx-man \
+ --sphinx-html \
+ --system-libs \
+ --qt-gui \
+ --parallel=$(/usr/bin/getconf _NPROCESSORS_ONLN)
+ make
+}
+
+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
+}