PKGBUILD 1.49 KB
Newer Older
1
#contributions from Arch: https://projects.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/extra-cmake-modules
Xuetian Weng's avatar
Xuetian Weng committed
2 3

pkgname=extra-cmake-modules
4
pkgver=5.55.0
5
pkgrel=1
Xuetian Weng's avatar
Xuetian Weng committed
6
pkgdesc='Extra CMake modules'
7
arch=('x86_64')
Xuetian Weng's avatar
Xuetian Weng committed
8 9 10 11
url='https://projects.kde.org/projects/kdesupport/extra-cmake-modules'
license=('LGPL')
depends=('cmake')
makedepends=('qt5-tools' 'python3-sphinx')
12
source=("https://download.kde.org/stable/frameworks/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz"{,.sig})
13
sha256sums=('649453922aef38a24af04258ab6661ddfd566aaba4d1773a9e1f4799344406f5'
14
            'SKIP')
15 16
validpgpkeys=(53E6B47B45CEA3E0D5B7457758D0EE648A48B3BB) # David Faure <faure@kde.org>

Xuetian Weng's avatar
Xuetian Weng committed
17 18 19 20 21

prepare() {
  mkdir -p build
}

22 23 24 25 26 27 28 29
build() {
  cd build
   cmake ../${pkgname}-${pkgver} \
     -DCMAKE_INSTALL_PREFIX=/usr \
     -DCMAKE_BUILD_TYPE=RelWithDebInfo
  make
}

Xuetian Weng's avatar
Xuetian Weng committed
30 31
check() {
  cd build
Luca Giambonini's avatar
Luca Giambonini committed
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
  
  # check error on 5.16 shoud be fixed in 5.17
  # 15/45 Test #15: ECMPoQmToolsTest ......................................***Failed
  
  #   Git commit 6745bd7e4796560959bb67e33b7c7f86f96a5a94 by Alex Merry.
  # Committed on 08/11/2015 at 19:29.
  # Pushed by alexmerry into branch 'master'.
  # 
  # Revert "Make sure we load translations on the main thread."
  # 
  # This broke the build for projects which used ecm_create_qm_loader in
  # unusual ways. A better approach is coming, but won't be in e-c-m 5.16.
  # 
  # This reverts commit 009c480413910e8c1a18f4d1420f4a517ea606e6.

  make test | true
Xuetian Weng's avatar
Xuetian Weng committed
48 49 50 51 52 53
}

package() {
  cd build
  make DESTDIR="${pkgdir}" install
}