[arch-commits] Commit in cmake/trunk (PKGBUILD)

Felix Yan felixonmars at gemini.archlinux.org
Thu Aug 26 19:37:56 UTC 2021


    Date: Thursday, August 26, 2021 @ 19:37:56
  Author: felixonmars
Revision: 422579

upgpkg: cmake 3.21.2-2: add back the gui. the removal in last commit was a mistake

Modified:
  cmake/trunk/PKGBUILD

----------+
 PKGBUILD |    9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-08-26 19:32:20 UTC (rev 422578)
+++ PKGBUILD	2021-08-26 19:37:56 UTC (rev 422579)
@@ -4,13 +4,14 @@
 
 pkgname=cmake
 pkgver=3.21.2
-pkgrel=1
+pkgrel=2
 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=('python-sphinx')
+makedepends=('qt6-base' 'python-sphinx' 'emacs')
+optdepends=('qt6-base: cmake-gui')
 source=("https://www.cmake.org/files/v${pkgver%.*}/${pkgname}-${pkgver}.tar.gz"
          cmake-cppflags.patch)
 sha512sums=('75649404564aaa6175a8c66ab19a10318066dbb667806c287e3cb125ac4c16c1629c160e355bcc50864a38d5488b1f7d1bc77acc602f5f3edd5f68691ae5080d'
@@ -29,6 +30,7 @@
     --docdir=/share/doc/cmake \
     --sphinx-man \
     --system-libs \
+    --qt-gui \
     --parallel=$(/usr/bin/getconf _NPROCESSORS_ONLN)
   make
 }
@@ -37,6 +39,9 @@
   cd ${pkgname}-${pkgver}
   make DESTDIR="${pkgdir}" install
 
+  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
 }



More information about the arch-commits mailing list