core/cmake/PKGBUILD

43 lines
1.2 KiB
Bash
Raw Normal View History

#
# Core Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
2010-03-13 23:54:19 +08:00
pkgname=cmake
2012-01-12 10:06:37 +08:00
pkgver=2.8.7
pkgrel=2
2010-03-13 23:54:19 +08:00
pkgdesc="A cross-platform open-source make system"
arch=('i686' 'x86_64')
license=('custom')
url="http://www.cmake.org"
depends=('curl' 'libarchive' 'shared-mime-info')
makedepends=('qt')
2010-04-04 22:20:41 +08:00
install=${pkgname}.install
source=("http://www.cmake.org/files/v2.8/${pkgname}-${pkgver}.tar.gz")
2012-01-12 10:06:37 +08:00
md5sums=('e1b237aeaed880f65dec9c20602452f6')
2010-03-13 23:54:19 +08:00
build() {
cd "${srcdir}"/${pkgname}-${pkgver}
./bootstrap --prefix=/usr \
--mandir=/share/man \
--docdir=/share/doc/cmake \
--system-libs \
--qt-gui \
--parallel=2
make
2010-04-04 22:20:41 +08:00
}
package() {
cd "${srcdir}"/${pkgname}-${pkgver}
make DESTDIR="${pkgdir}" install
2010-03-13 23:54:19 +08:00
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
2010-03-13 23:54:19 +08:00
}