blob: b35bcb3eaabe9e5ac7ba03c1758dad99a5cfe440 (
plain) (
tree)
|
|
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=extra-cmake-modules
pkgver=5.94.0
pkgrel=0
pkgdesc="CMake modules needed for KDE development"
url="https://www.kde.org/"
arch="noarch"
options="!dbg !check" # apparently tests can't be built in a git repo
license="BSD-3-Clause"
depends=""
makedepends="cmake qt5-qtbase-dev qt5-qttools-dev qt5-qtdeclarative-dev
qt5-qtquickcontrols py3-sphinx"
subpackages="$pkgname-doc"
source="https://download.kde.org/stable/frameworks/${pkgver%.*}/extra-cmake-modules-$pkgver.tar.xz
posix.patch
"
build() {
if [ "$CBUILD" != "$CHOST" ]; then
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
fi
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=RelWithDebugInfo \
-DCMAKE_C_FLAGS="$CFLAGS" \
${CMAKE_CROSSOPTS} .
make
}
check() {
CTEST_OUTPUT_ON_FAILURE=TRUE \
ctest -E '(relative_or_absolute_|KDEFetchTranslations|ECMGeneratePkgConfigFile)'
}
package() {
make DESTDIR="$pkgdir" install
}
sha512sums="c76e27ded4d5108d756b5891c64cbfbaad8a944e2cc5ce3a1b56ef395bad9688e493a1d8a6e91c2910e156ff5ff018ed054a4b3825b093c877e6c445eb74179e extra-cmake-modules-5.94.0.tar.xz
7787ce077da9e1d0ff082d19591739265d8d63c2a70c9c4f87836327154cd5221850cefefe9291712c121d5875c7442b4a276535f4214ac653dde692a82f398a posix.patch"
|