core/extra-cmake-modules/PKGBUILD
AlmAck ae0046ec8a remove _url and incorporate everything in the pkg.
the kdeupdate script is able to update the sha256sums automatically
2018-06-11 23:22:38 +02:00

54 lines
1.5 KiB
Bash

#contributions from Arch: https://projects.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/extra-cmake-modules
pkgname=extra-cmake-modules
pkgver=5.47.0
pkgrel=1
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=("https://download.kde.org/stable/frameworks/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz"{,.sig})
sha256sums=('976d8bd15a0b929376bfaef34602a0fb9614229851c46fac3c4b28938f682195'
SKIP)
validpgpkeys=(53E6B47B45CEA3E0D5B7457758D0EE648A48B3BB) # David Faure <faure@kde.org>
prepare() {
mkdir -p build
}
build() {
cd build
cmake ../${pkgname}-${pkgver} \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=RelWithDebInfo
make
}
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
}
package() {
cd build
make DESTDIR="${pkgdir}" install
}