diff options
author | Michael Hanson <hansonorders@verizon.net> | 2010-11-20 03:54:11 (GMT) |
---|---|---|
committer | Michael Hanson <hansonorders@verizon.net> | 2010-11-20 03:54:11 (GMT) |
commit | ae69e6773ed7339f10a6335fa5d37103a73a1499 (patch) | |
tree | 981f6326ea5d95837750b05b36611036f51ee103 /abs | |
parent | 25d91b472713b3ee72b65aa46359c95decc626e2 (diff) | |
download | linhes_pkgbuild-ae69e6773ed7339f10a6335fa5d37103a73a1499.zip linhes_pkgbuild-ae69e6773ed7339f10a6335fa5d37103a73a1499.tar.gz linhes_pkgbuild-ae69e6773ed7339f10a6335fa5d37103a73a1499.tar.bz2 |
cmake: upgrade
Diffstat (limited to 'abs')
-rw-r--r-- | abs/core/cmake/PKGBUILD | 47 | ||||
-rw-r--r-- | abs/core/cmake/cmake.install | 11 |
2 files changed, 39 insertions, 19 deletions
diff --git a/abs/core/cmake/PKGBUILD b/abs/core/cmake/PKGBUILD index 60e7f35..2125fb9 100644 --- a/abs/core/cmake/PKGBUILD +++ b/abs/core/cmake/PKGBUILD @@ -1,33 +1,42 @@ -# $Id: PKGBUILD 27686 2009-02-24 20:21:28Z pierre $ -# Maintainer: Pierre Schmitz <pierre@archlinux.de> +# $Id: PKGBUILD 98166 2010-11-04 07:38:49Z andrea $ +# Maintainer: Andrea Scarpino <andrea@archlinux.org> +# Contributor: Pierre Schmitz <pierre@archlinux.de> # Contributor: damir <damir@archlinux.org> # Contributor: Konstantinos Pachnis <kpachnis@mes-direct.com> pkgname=cmake -pkgver=2.6.3 +pkgver=2.8.3 pkgrel=1 -pkgdesc="CMake is a cross-platform open-source make system" +pkgdesc="A cross-platform open-source make system" arch=('i686' 'x86_64') license=('custom') url="http://www.cmake.org" -depends=('expat' 'xmlrpc-c') +depends=('expat' 'curl' 'gcc-libs' 'shared-mime-info') makedepends=('qt') optdepends=('qt: cmake-gui') -source=("http://www.cmake.org/files/v2.6/$pkgname-$pkgver.tar.gz") -md5sums=('5ba47a94ce276f326abca1fd72a7e7c6') +install="${pkgname}.install" +source=("http://www.cmake.org/files/v2.8/${pkgname}-${pkgver}.tar.gz") +md5sums=('a76a44b93acf5e3badda9de111385921') build() { - cd $srcdir/$pkgname-$pkgver - ./bootstrap --prefix=/usr \ - --mandir=/share/man \ - --docdir=/share/doc/cmake \ - --system-libs \ - --qt-gui - make || return 1 - make DESTDIR=$pkgdir install + cd ${srcdir}/${pkgname}-${pkgver} - install -D -m644 Docs/cmake-indent.vim $pkgdir/usr/share/vim/indent/cmake-indent.vim - install -D -m644 Docs/cmake-syntax.vim $pkgdir/usr/share/vim/syntax/cmake-syntax.vim - install -D -m644 Docs/cmake-mode.el $pkgdir/usr/share/emacs/site-lisp/cmake-mode.el - install -D -m644 Copyright.txt $pkgdir/usr/share/licenses/$pkgname/Copyright.txt + ./bootstrap --prefix=/usr \ + --mandir=/share/man \ + --docdir=/share/doc/cmake \ + --system-libs \ + --qt-gui \ + --parallel=2 + make +} + +package() { + cd ${srcdir}/${pkgname}-${pkgver} + make DESTDIR=${pkgdir} install + + vimpath="$pkgdir/usr/share/vim/vimfiles" + install -Dm644 Docs/cmake-indent.vim ${vimpath}/indent/cmake-indent.vim + install -Dm644 Docs/cmake-syntax.vim ${vimpath}/syntax/cmake-syntax.vim + install -Dm644 Docs/cmake-mode.el ${pkgdir}/usr/share/emacs/site-lisp/cmake-mode.el + install -Dm644 Copyright.txt ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE } diff --git a/abs/core/cmake/cmake.install b/abs/core/cmake/cmake.install new file mode 100644 index 0000000..7c8a8bd --- /dev/null +++ b/abs/core/cmake/cmake.install @@ -0,0 +1,11 @@ +post_install() { + update-mime-database usr/share/mime &> /dev/null +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +} |