2020-06-18 08:43:47 +00:00
|
|
|
# Maintainer: Bart Ribbers <bribbers@disroot.org>
|
|
|
|
pkgname=kclock
|
|
|
|
pkgver=0_git20200618
|
2020-09-07 14:09:32 +00:00
|
|
|
pkgrel=2
|
2020-06-18 08:43:47 +00:00
|
|
|
_commit="608247addaf4e6666c9985c82eb0b73aa6840310"
|
|
|
|
pkgdesc="Clock app for Plasma Mobile"
|
2020-09-05 20:54:34 +00:00
|
|
|
url="https://invent.kde.org/plasma-mobile/kclock"
|
2020-07-30 16:02:20 +00:00
|
|
|
arch="all !armhf" # armhf blocked by qt5-qtdeclarative
|
2020-06-18 08:43:47 +00:00
|
|
|
license="LicenseRef-KDE-Accepted-GPL"
|
|
|
|
depends="kirigami2 kirigami-addons"
|
|
|
|
makedepends="extra-cmake-modules qt5-qtbase-dev qt5-qtdeclarative-dev qt5-qtsvg-dev qt5-qtquickcontrols2-dev kconfig-dev kirigami2-dev ki18n-dev kcoreaddons-dev kconfig-dev knotifications-dev kdbusaddons-dev"
|
|
|
|
source="https://invent.kde.org/plasma-mobile/kclock/-/archive/$_commit/kclock-$_commit.tar.gz"
|
|
|
|
options="!check" # No tests
|
|
|
|
builddir="$srcdir/$pkgname-$_commit"
|
|
|
|
|
2020-09-07 14:09:32 +00:00
|
|
|
prepare() {
|
|
|
|
default_prepare
|
|
|
|
|
|
|
|
# qmlplugindump fails for armv7+qemu (bpo#74). This is purely for
|
|
|
|
# packager knowledge and doesn't affect runtime, so we can disable it.
|
|
|
|
if [ "$CARCH" = "armv7" ]; then
|
|
|
|
sed -i "s/ecm_find_qmlmodule/# ecm_find_qmlmodule/g" CMakeLists.txt
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2020-06-18 08:43:47 +00:00
|
|
|
build() {
|
|
|
|
cmake -B build \
|
|
|
|
-DCMAKE_BUILD_TYPE=None \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DCMAKE_INSTALL_LIBDIR=lib
|
|
|
|
cmake --build build
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
DESTDIR="$pkgdir" cmake --build build --target install
|
|
|
|
}
|
|
|
|
|
|
|
|
sha512sums="a3b63cace341c6ece2cd79df47c86c741b113e0d556ff8b427314d7bea1043d7b310007808fa8c7e03bd82fd063953cc53835cc9ad6d4f6fbb0dec48f81fec61 kclock-608247addaf4e6666c9985c82eb0b73aa6840310.tar.gz"
|