core/cmake/PKGBUILD

48 lines
1.4 KiB
Bash
Raw Normal View History

pkgname=cmake
2017-05-03 12:55:14 +08:00
pkgver=3.8.1
2017-04-29 12:30:02 +08:00
pkgrel=1
pkgdesc='A cross-platform open-source make system'
arch=('x86_64')
2017-04-29 12:30:02 +08:00
url="http://www.cmake.org/"
license=('custom')
2016-11-29 20:41:05 +08:00
depends=('curl' 'libarchive' 'shared-mime-info' 'jsoncpp' 'libuv')
2017-04-29 12:30:02 +08:00
makedepends=('qt5-base' 'python3-sphinx' 'libxkbcommon-x11' 'rhash')
optdepends=('qt5-base: cmake-gui'
'libxkbcommon-x11: cmake-gui')
source=("https://www.cmake.org/files/v${pkgver%.*}/${pkgname}-${pkgver}.tar.gz")
2017-05-03 12:55:14 +08:00
sha256sums=('ce5d9161396e06501b00e52933783150a87c33080d4bdcef461b5b7fd24ac228')
install=${pkgname}.install
build() {
2017-04-29 12:30:02 +08:00
cd ${pkgname}-${pkgver}
2016-03-28 01:02:59 +08:00
./bootstrap --prefix=/usr \
--mandir=/share/man \
--docdir=/share/doc/cmake \
2016-03-28 01:02:59 +08:00
--sphinx-man \
--system-libs \
--qt-gui \
2015-11-17 14:55:19 +08:00
--qt-qmake=/usr/lib/qt5/bin/qmake \
--parallel=$(/usr/bin/getconf _NPROCESSORS_ONLN)
make
}
package() {
2014-07-04 04:07:50 +08:00
cd ${pkgname}-${pkgver}
make DESTDIR="${pkgdir}" install
2014-07-04 04:07:50 +08:00
vimpath="${pkgdir}/usr/share/vim/vimfiles"
install -d "${vimpath}"/{help,indent,syntax}
2017-04-29 12:30:02 +08:00
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/
2014-07-04 04:07:50 +08:00
install -d "${pkgdir}"/usr/share/emacs/site-lisp/
2017-04-29 12:30:02 +08:00
ln -s /usr/share/cmake-${pkgver%.*}/editors/emacs/cmake-mode.el \
"${pkgdir}"/usr/share/emacs/site-lisp/
2014-07-04 04:07:50 +08:00
install -Dm644 Copyright.txt \
"${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
}