2020-06-18 08:43:47 +00:00
|
|
|
# Maintainer: Bart Ribbers <bribbers@disroot.org>
|
|
|
|
pkgname=kclock
|
2020-09-04 20:09:36 +00:00
|
|
|
pkgver=0_git20200905
|
|
|
|
pkgrel=0
|
|
|
|
_commit="940e00c0128c8e04626dc7aa39a6d5ee7e2cc474"
|
2020-06-18 08:43:47 +00:00
|
|
|
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"
|
2020-09-04 20:09:36 +00:00
|
|
|
depends="
|
|
|
|
kirigami-addons
|
|
|
|
kirigami2
|
|
|
|
"
|
|
|
|
makedepends="
|
|
|
|
extra-cmake-modules
|
|
|
|
kconfig-dev
|
|
|
|
kcoreaddons-dev
|
|
|
|
kdbusaddons-dev
|
|
|
|
ki18n-dev
|
|
|
|
kirigami2-dev
|
|
|
|
knotifications-dev
|
|
|
|
plasma-framework-dev
|
|
|
|
qt5-qtbase-dev
|
|
|
|
qt5-qtdeclarative-dev
|
|
|
|
qt5-qtmultimedia-dev
|
|
|
|
qt5-qtquickcontrols2-dev
|
|
|
|
qt5-qtsvg-dev
|
|
|
|
"
|
2020-06-18 08:43:47 +00:00
|
|
|
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
|
|
|
|
|
2020-09-11 13:40:04 +00:00
|
|
|
# qmlplugindump fails for armv7+qemu (pmb#1970). This is purely for
|
2020-09-07 14:09:32 +00:00
|
|
|
# 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
|
|
|
|
}
|
|
|
|
|
2020-09-04 20:09:36 +00:00
|
|
|
sha512sums="0f3159356a7f4bc750f17eee11eb390b672dd0c0112c36dafd4106334539886c9d835a24560a6e302c6d72465bab8a8495a981d1e1a97a07994fa4a02029b466 kclock-940e00c0128c8e04626dc7aa39a6d5ee7e2cc474.tar.gz"
|