void-packages/srcpkgs/purpose/template
2021-05-13 21:15:41 +02:00

32 lines
961 B
Bash

# Template file for 'purpose'
pkgname=purpose
version=5.82.0
revision=1
build_style=cmake
hostmakedepends="kcoreaddons qt5-qmake qt5-host-tools extra-cmake-modules
python3 gettext"
makedepends="qt5-devel qt5-declarative-devel kcoreaddons-devel kconfig-devel
kio-devel kirigami2-devel"
short_desc="Offers available actions for a specific purpose"
maintainer="John <me@johnnynator.dev>"
license="LGPL-2.1-or-later"
homepage="https://invent.kde.org/frameworks/purpose"
distfiles="${KDE_SITE}/frameworks/${version%.*}/${pkgname}-${version}.tar.xz"
checksum=a73649bae4cf36496aee27bb6391a855f6d80e23a90603f2c3700750a6e40f03
do_check() {
export QT_QPA_PLATFORM=offscreen
cd build
# QML test that requires OpenGL
CTEST_OUTPUT_ON_FAILURE=TRUE ctest -E 'menutest'
}
purpose-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/cmake
vmove "usr/lib/*.so"
}
}