core/extra-cmake-modules/PKGBUILD
2018-01-25 00:42:02 +01:00

55 lines
1.4 KiB
Bash

#contributions from Arch: https://projects.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/extra-cmake-modules
source ../frameworks.conf
pkgname=extra-cmake-modules
pkgver=$KFECMVersion
pkgrel=2
pkgdesc='Extra CMake modules'
arch=('x86_64')
url='https://projects.kde.org/projects/kdesupport/extra-cmake-modules'
license=('LGPL')
depends=('cmake')
makedepends=('qt5-tools' 'python3-sphinx')
source=("${KFServer}/${pkgname}-${pkgver}.tar.xz"{,.sig})
sha256sums=( $(getSum ${pkgname})
SKIP)
validpgpkeys=( ${KFvalidpgpkeys[@]} )
prepare() {
mkdir -p build
}
check() {
cd build
# 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
}
build() {
cd build
cmake ../${pkgname}-${pkgver} \
-DCMAKE_INSTALL_PREFIX=$KFInstallPrefix \
-DCMAKE_BUILD_TYPE=$KFBuildType
make
}
package() {
cd build
make DESTDIR="${pkgdir}" install
}