mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-10 10:54:36 +08:00
44 lines
1.4 KiB
Bash
44 lines
1.4 KiB
Bash
pkgname=cmake
|
|
pkgver=3.7.1
|
|
pkgrel=2
|
|
pkgdesc="A cross-platform open-source make system"
|
|
arch=('x86_64')
|
|
license=('custom')
|
|
url="http://www.cmake.org"
|
|
depends=('curl' 'libarchive' 'shared-mime-info' 'jsoncpp' 'libuv')
|
|
makedepends=('qt5-base' 'python3-sphinx' 'libxkbcommon-x11')
|
|
install=${pkgname}.install
|
|
source=("http://www.cmake.org/files/v${pkgver%.*}/${pkgname}-${pkgver}.tar.gz")
|
|
sha256sums=('449a5bce64dbd4d5b9517ebd1a1248ed197add6ad27934478976fd5f1f9330e1')
|
|
|
|
build() {
|
|
cd "${srcdir}"/${pkgname}-${pkgver}
|
|
|
|
./bootstrap --prefix=/usr \
|
|
--mandir=/share/man \
|
|
--docdir=/share/doc/cmake \
|
|
--sphinx-man \
|
|
--system-libs \
|
|
--qt-gui \
|
|
--qt-qmake=/usr/lib/qt5/bin/qmake \
|
|
--parallel=$(/usr/bin/getconf _NPROCESSORS_ONLN)
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd ${pkgname}-${pkgver}
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
vimpath="${pkgdir}/usr/share/vim/vimfiles"
|
|
install -d "${vimpath}"/{help,indent,syntax}
|
|
ln -s /usr/share/${pkgname}-${_pkgver}/editors/vim/cmake-help.vim "${vimpath}"/help/
|
|
ln -s /usr/share/${pkgname}-${_pkgver}/editors/vim/cmake-indent.vim "${vimpath}"/indent/
|
|
ln -s /usr/share/${pkgname}-${_pkgver}/editors/vim/cmake-syntax.vim "${vimpath}"/syntax/
|
|
|
|
install -d "${pkgdir}"/usr/share/emacs/site-lisp/
|
|
ln -s /usr/share/${pkgname}-${_pkgver}/editors/emacs/cmake-mode.el "${pkgdir}"/usr/share/emacs/site-lisp/
|
|
|
|
install -Dm644 Copyright.txt \
|
|
"${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
|
|
}
|