[arch-commits] Commit in cmake/repos (3 files)
Levente Polyak
anthraxx at archlinux.org
Sat Mar 28 17:13:26 UTC 2020
Date: Saturday, March 28, 2020 @ 17:13:26
Author: anthraxx
Revision: 378613
archrelease: copy trunk to staging-x86_64
Added:
cmake/repos/staging-x86_64/
cmake/repos/staging-x86_64/PKGBUILD
(from rev 378612, cmake/trunk/PKGBUILD)
cmake/repos/staging-x86_64/rebuild.list
(from rev 378612, cmake/trunk/rebuild.list)
--------------+
PKGBUILD | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
rebuild.list | 2 ++
2 files changed, 54 insertions(+)
Copied: cmake/repos/staging-x86_64/PKGBUILD (from rev 378612, cmake/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2020-03-28 17:13:26 UTC (rev 378613)
@@ -0,0 +1,52 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Andrea Scarpino <andrea at archlinux.org>
+# Contributor: Pierre Schmitz <pierre at archlinux.de>
+
+pkgname=cmake
+pkgver=3.17.0
+pkgrel=2
+pkgdesc='A cross-platform open-source make system'
+arch=('x86_64')
+url="https://www.cmake.org/"
+license=('custom')
+depends=('curl' 'libarchive' 'shared-mime-info' 'jsoncpp' 'libjsoncpp.so' 'libuv' 'rhash')
+makedepends=('qt5-base' 'python-sphinx' 'emacs')
+optdepends=('qt5-base: cmake-gui')
+source=("https://www.cmake.org/files/v${pkgver%.*}/${pkgname}-${pkgver}.tar.gz")
+sha512sums=('f09440681e0c414f5ca669f3aeba6666d09e0642f30a2e12c3199e7fb3da95a7dd17994fc54475c49638c37f0502ea0a2d8da0f9098805f11088ba7b299bf72a')
+
+build() {
+ cd ${pkgname}-${pkgver}
+ export CXXFLAGS+=" ${CPPFLAGS}"
+ ./bootstrap --prefix=/usr \
+ --mandir=/share/man \
+ --docdir=/share/doc/cmake \
+ --sphinx-man \
+ --system-libs \
+ --qt-gui \
+ --parallel=$(/usr/bin/getconf _NPROCESSORS_ONLN)
+ make
+}
+
+package() {
+ cd ${pkgname}-${pkgver}
+ make DESTDIR="${pkgdir}" install
+
+ vimpath="${pkgdir}/usr/share/vim/vimfiles"
+ install -d "${vimpath}"/{indent,syntax}
+ ln -s /usr/share/cmake-${pkgver%.*}/editors/vim/indent/cmake.vim \
+ "${vimpath}"/indent/
+ ln -s /usr/share/cmake-${pkgver%.*}/editors/vim/syntax/cmake.vim \
+ "${vimpath}"/syntax/
+
+ install -d "${pkgdir}"/usr/share/emacs/site-lisp/
+ emacs -batch -f batch-byte-compile \
+ "${pkgdir}"/usr/share/cmake-${pkgver%.*}/editors/emacs/cmake-mode.el
+ ln -s /usr/share/cmake-${pkgver%.*}/editors/emacs/cmake-mode.el \
+ "${pkgdir}"/usr/share/emacs/site-lisp/
+ ln -s /usr/share/cmake-${pkgver%.*}/editors/emacs/cmake-mode.elc \
+ "${pkgdir}"/usr/share/emacs/site-lisp/
+
+ install -Dm644 Copyright.txt \
+ "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}
Copied: cmake/repos/staging-x86_64/rebuild.list (from rev 378612, cmake/trunk/rebuild.list)
===================================================================
--- staging-x86_64/rebuild.list (rev 0)
+++ staging-x86_64/rebuild.list 2020-03-28 17:13:26 UTC (rev 378613)
@@ -0,0 +1,2 @@
+cmake-fedora
+uranium
More information about the arch-commits
mailing list