PKGBUILDs/extra/cmake/PKGBUILD
2009-09-26 09:35:50 -05:00

33 lines
1.1 KiB
Bash

# $Id: PKGBUILD 37903 2009-05-04 13:49:47Z pierre $
# Maintainer: Pierre Schmitz <pierre@archlinux.de>
# Contributor: damir <damir@archlinux.org>
# Contributor: Konstantinos Pachnis <kpachnis@mes-direct.com>
pkgname=cmake
pkgver=2.6.4
pkgrel=2
pkgdesc="CMake is a cross-platform open-source make system"
arch=('arm')
license=('custom')
url="http://www.cmake.org"
depends=('expat' 'xmlrpc-c' 'gcc-libs')
makedepends=('qt')
optdepends=('qt: cmake-gui')
source=("http://www.cmake.org/files/v2.6/$pkgname-$pkgver.tar.gz")
md5sums=('50f387d0436696c4a68b5512a72c9cde')
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
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
}