[arch-commits] Commit in cmake/repos (6 files)

Andrea Scarpino andrea at nymeria.archlinux.org
Tue Jun 10 22:45:51 UTC 2014


    Date: Wednesday, June 11, 2014 @ 00:45:50
  Author: andrea
Revision: 214962

archrelease: copy trunk to testing-i686, testing-x86_64

Added:
  cmake/repos/testing-i686/
  cmake/repos/testing-i686/PKGBUILD
    (from rev 214961, cmake/trunk/PKGBUILD)
  cmake/repos/testing-i686/cmake.install
    (from rev 214961, cmake/trunk/cmake.install)
  cmake/repos/testing-x86_64/
  cmake/repos/testing-x86_64/PKGBUILD
    (from rev 214961, cmake/trunk/PKGBUILD)
  cmake/repos/testing-x86_64/cmake.install
    (from rev 214961, cmake/trunk/cmake.install)

------------------------------+
 testing-i686/PKGBUILD        |   45 +++++++++++++++++++++++++++++++++++++++++
 testing-i686/cmake.install   |   12 ++++++++++
 testing-x86_64/PKGBUILD      |   45 +++++++++++++++++++++++++++++++++++++++++
 testing-x86_64/cmake.install |   12 ++++++++++
 4 files changed, 114 insertions(+)

Copied: cmake/repos/testing-i686/PKGBUILD (from rev 214961, cmake/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD	                        (rev 0)
+++ testing-i686/PKGBUILD	2014-06-10 22:45:50 UTC (rev 214962)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Andrea Scarpino <andrea at archlinux.org>
+# Contributor: Pierre Schmitz <pierre at archlinux.de>
+
+pkgname=cmake
+pkgver=3.0.0
+pkgrel=1
+pkgdesc="A cross-platform open-source make system"
+arch=('i686' 'x86_64')
+url="http://www.cmake.org/"
+license=('custom')
+depends=('curl' 'libarchive' 'shared-mime-info')
+makedepends=('qt4' 'emacs')
+optdepends=('qt4: cmake-gui')
+install="${pkgname}.install"
+source=("http://www.cmake.org/files/v3.0/${pkgname}-${pkgver}.tar.gz")
+md5sums=('21a1c85e1a3b803c4b48e7ff915a863e')
+
+build() {
+  cd ${pkgname}-${pkgver}
+
+  ./bootstrap --prefix=/usr \
+    --mandir=/share/man \
+    --docdir=/share/doc/cmake \
+    --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"
+  mkdir -p "${vimpath}"/{help,indent,syntax}
+  ln -s /usr/share/cmake-3.0/editors/vim/cmake-help.vim "${vimpath}"/help/
+  ln -s /usr/share/cmake-3.0/editors/vim/cmake-indent.vim "${vimpath}"/indent/
+  ln -s /usr/share/cmake-3.0/editors/vim/cmake-syntax.vim "${vimpath}"/syntax/
+
+  emacs -batch -f batch-byte-compile "${pkgdir}"/usr/share/cmake-3.0/editors/emacs/cmake-mode.el
+
+  install -Dm644 Copyright.txt \
+    "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}

Copied: cmake/repos/testing-i686/cmake.install (from rev 214961, cmake/trunk/cmake.install)
===================================================================
--- testing-i686/cmake.install	                        (rev 0)
+++ testing-i686/cmake.install	2014-06-10 22:45:50 UTC (rev 214962)
@@ -0,0 +1,12 @@
+post_install() {
+	update-mime-database usr/share/mime &> /dev/null
+    [[ -x usr/bin/update-desktop-database ]] && update-desktop-database -q || true
+}
+
+post_upgrade() {
+	post_install
+}
+
+post_remove() {
+	post_install
+}

Copied: cmake/repos/testing-x86_64/PKGBUILD (from rev 214961, cmake/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2014-06-10 22:45:50 UTC (rev 214962)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Andrea Scarpino <andrea at archlinux.org>
+# Contributor: Pierre Schmitz <pierre at archlinux.de>
+
+pkgname=cmake
+pkgver=3.0.0
+pkgrel=1
+pkgdesc="A cross-platform open-source make system"
+arch=('i686' 'x86_64')
+url="http://www.cmake.org/"
+license=('custom')
+depends=('curl' 'libarchive' 'shared-mime-info')
+makedepends=('qt4' 'emacs')
+optdepends=('qt4: cmake-gui')
+install="${pkgname}.install"
+source=("http://www.cmake.org/files/v3.0/${pkgname}-${pkgver}.tar.gz")
+md5sums=('21a1c85e1a3b803c4b48e7ff915a863e')
+
+build() {
+  cd ${pkgname}-${pkgver}
+
+  ./bootstrap --prefix=/usr \
+    --mandir=/share/man \
+    --docdir=/share/doc/cmake \
+    --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"
+  mkdir -p "${vimpath}"/{help,indent,syntax}
+  ln -s /usr/share/cmake-3.0/editors/vim/cmake-help.vim "${vimpath}"/help/
+  ln -s /usr/share/cmake-3.0/editors/vim/cmake-indent.vim "${vimpath}"/indent/
+  ln -s /usr/share/cmake-3.0/editors/vim/cmake-syntax.vim "${vimpath}"/syntax/
+
+  emacs -batch -f batch-byte-compile "${pkgdir}"/usr/share/cmake-3.0/editors/emacs/cmake-mode.el
+
+  install -Dm644 Copyright.txt \
+    "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}

Copied: cmake/repos/testing-x86_64/cmake.install (from rev 214961, cmake/trunk/cmake.install)
===================================================================
--- testing-x86_64/cmake.install	                        (rev 0)
+++ testing-x86_64/cmake.install	2014-06-10 22:45:50 UTC (rev 214962)
@@ -0,0 +1,12 @@
+post_install() {
+	update-mime-database usr/share/mime &> /dev/null
+    [[ -x usr/bin/update-desktop-database ]] && update-desktop-database -q || true
+}
+
+post_upgrade() {
+	post_install
+}
+
+post_remove() {
+	post_install
+}




More information about the arch-commits mailing list