New package: ktouch-18.08.3

closes #5820

Co-authored-by: maxice8 <thinkabit.ukim@gmail.com>
This commit is contained in:
1is7ac3 2018-12-13 11:53:45 -04:00 committed by maxice8
parent 587890a4a8
commit 6495fc5c3b
No known key found for this signature in database
GPG key ID: 543B9D4F4299F06B

29
srcpkgs/ktouch/template Normal file
View file

@ -0,0 +1,29 @@
# Template file for 'ktouch'
pkgname=ktouch
version=18.12.1
revision=1
build_style=cmake
hostmakedepends="extra-cmake-modules pkg-config qt5-declarative"
makedepends="libxkbfile-devel kdeclarative-devel kcmutils-devel
qt5-xmlpatterns-devel qt5-tools-devel kio-devel qt5-plugin-mysql qt5-plugin-tds
qt5-declarative-devel qt5-plugin-odbc qt5-plugin-pgsql qt5-plugin-sqlite
qt5-quickcontrols2-devel"
short_desc="Learn and practive touch typing"
maintainer="1is7ac3 <isaac.qa13@gmail.com>"
license="GPL-2.0-or-later"
homepage="https://kde.org/applications/education/ktouch"
distfiles="${KDE_SITE}/applications/${version}/src/${pkgname}-${version}.tar.xz"
checksum=4529efa94dc0574790f492e9cc54ed898596c424f6444e025f81d0427a87746c
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" kdoctools qt5-qmake qt5-host-tools kconfig"
fi
post_configure() {
sed -e 's|/usr/bin/qmlcachegen|/usr/bin/qmlcachegen-qt5|g' \
-i build/src/CMakeFiles/ktouch.dir/build.make
# Fix path for qmlcachegen on cross builds
sed -e "s|${XBPS_CROSS_BASE}/usr/bin/qmlcachegen-qt5|/usr/bin/qmlcachegen-qt5|g" \
-i build/src/CMakeFiles/ktouch.dir/build.make
}