Advertisement
Guest User

Untitled

a guest
Jun 27th, 2020
284
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # $Id$
  2. # Maintainer: Piotr Gorski <lucjan.lucjanov@gmail.com>
  3. # Contributor: Ysblokje <ysblokje at gmail dot com>
  4. # Contributor: Felix Yan <felixonmars@archlinux.org>
  5. # Contributor: Andrea Scarpino <andrea@archlinux.org>
  6. # Contributor: Pierre Schmitz <pierre@archlinux.de>
  7. # Contributor: Christoph Viebig <oss@christoph-viebig.de>
  8. #
  9. # This PKGBUILD is based on the official Arch cmake package.
  10.  
  11. pkgname=cmake-git
  12. pkgver=3.17.3.1287.g04b9b2b5f3
  13. pkgrel=1
  14. pkgdesc='A cross-platform open-source make system'
  15. arch=('x86_64')
  16. url="http://www.cmake.org/"
  17. license=('custom')
  18. conflicts=('cmake')
  19. provides=('cmake')
  20. depends=('curl' 'libarchive' 'shared-mime-info' 'jsoncpp' 'libjsoncpp.so' 'libuv' 'rhash')
  21. makedepends=('qt5-base' 'python-sphinx' 'git' 'ncurses' 'emacs')
  22. optdepends=('qt5-base: cmake-gui'
  23. 'libxkbcommon-x11: cmake-gui')
  24. source=('git+https://gitlab.kitware.com/cmake/cmake.git'
  25. 'cmake-cppflags.patch')
  26. md5sums=('SKIP'
  27. 'd7316e540d07e0a7ebce75951a7b2697')
  28. shortver=$(printf "${pkgver}" | sed 's/\([0-9]\+\.[0-9]\+\)\..*/\1/')
  29.  
  30. pkgver() {
  31. cd "$srcdir/cmake"
  32. git describe --always --tags --long | sed -e 's|^v||' -e 's|-|.|g'
  33. }
  34.  
  35. prepare() {
  36. cd "$srcdir/cmake"
  37. patch -p1 -i ../cmake-cppflags.patch # Honor CPPFLAGS https://gitlab.kitware.com/cmake/cmake/issues/12928
  38. }
  39.  
  40. build() {
  41. cd "$srcdir/cmake"
  42.  
  43. export CXXFLAGS+=" ${CPPFLAGS}"
  44. ./bootstrap --prefix=/usr \
  45. --mandir=/share/man \
  46. --docdir=/share/doc/cmake \
  47. --sphinx-man \
  48. --system-libs \
  49. --qt-gui \
  50. --parallel=$(/usr/bin/getconf _NPROCESSORS_ONLN)
  51. make
  52. }
  53.  
  54. package() {
  55. cd "$srcdir/cmake"
  56. make DESTDIR="${pkgdir}" install
  57.  
  58. install -Dm644 Copyright.txt \
  59. "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
  60. }
Advertisement
RAW Paste Data Copied
Advertisement