void-packages/srcpkgs/kf6-modemmanager-qt/template

31 lines
858 B
Bash

# Template file for 'kf6-modemmanager-qt'
pkgname=kf6-modemmanager-qt
version=6.3.0
revision=1
build_style=cmake
hostmakedepends="extra-cmake-modules qt6-tools qt6-base
pkg-config"
makedepends="qt6-base-devel ModemManager-devel"
checkdepends="dbus"
short_desc="Qt wrapper for ModemManager DBus API"
maintainer="John <me@johnnynator.dev>"
license="LGPL-2.1-or-later"
homepage="https://invent.kde.org/frameworks/modemmanager-qt"
distfiles="${KDE_SITE}/frameworks/${version%.*}/${pkgname#kf6-}-${version}.tar.xz"
checksum=9cf3029746a8b8b3740bc4de93f138664325c7f4fe8017d92e342e7bc43ec7cf
do_check() {
cd build
dbus-run-session ctest
}
kf6-modemmanager-qt-devel_package() {
depends="$makedepends ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/cmake
vmove "usr/lib/*.so"
}
}