Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # $Id$
- # Maintainer: Piotr Gorski <lucjan.lucjanov@gmail.com>
- # Contributor: Ysblokje <ysblokje at gmail dot com>
- # Contributor: Felix Yan <felixonmars@archlinux.org>
- # Contributor: Andrea Scarpino <andrea@archlinux.org>
- # Contributor: Pierre Schmitz <pierre@archlinux.de>
- # Contributor: Christoph Viebig <oss@christoph-viebig.de>
- #
- # This PKGBUILD is based on the official Arch cmake package.
- pkgname=cmake-git
- pkgver=3.17.3.1287.g04b9b2b5f3
- pkgrel=1
- pkgdesc='A cross-platform open-source make system'
- arch=('x86_64')
- url="http://www.cmake.org/"
- license=('custom')
- conflicts=('cmake')
- provides=('cmake')
- depends=('curl' 'libarchive' 'shared-mime-info' 'jsoncpp' 'libjsoncpp.so' 'libuv' 'rhash')
- makedepends=('qt5-base' 'python-sphinx' 'git' 'ncurses' 'emacs')
- optdepends=('qt5-base: cmake-gui'
- 'libxkbcommon-x11: cmake-gui')
- source=('git+https://gitlab.kitware.com/cmake/cmake.git'
- 'cmake-cppflags.patch')
- md5sums=('SKIP'
- 'd7316e540d07e0a7ebce75951a7b2697')
- shortver=$(printf "${pkgver}" | sed 's/\([0-9]\+\.[0-9]\+\)\..*/\1/')
- pkgver() {
- cd "$srcdir/cmake"
- git describe --always --tags --long | sed -e 's|^v||' -e 's|-|.|g'
- }
- prepare() {
- cd "$srcdir/cmake"
- patch -p1 -i ../cmake-cppflags.patch # Honor CPPFLAGS https://gitlab.kitware.com/cmake/cmake/issues/12928
- }
- build() {
- cd "$srcdir/cmake"
- export CXXFLAGS+=" ${CPPFLAGS}"
- ./bootstrap --prefix=/usr \
- --mandir=/share/man \
- --docdir=/share/doc/cmake \
- --sphinx-man \
- --system-libs \
- --qt-gui \
- --parallel=$(/usr/bin/getconf _NPROCESSORS_ONLN)
- make
- }
- package() {
- cd "$srcdir/cmake"
- make DESTDIR="${pkgdir}" install
- install -Dm644 Copyright.txt \
- "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement