pmaports/kde/qmlkonsole/APKBUILD

49 lines
1.3 KiB
Text

# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=qmlkonsole
pkgver=0_git20201001
pkgrel=0
_commit="d34cab3771e1327f7b91a02c4bd49037c770d4e4"
pkgdesc="Terminal app for Plasma Mobile"
arch="all !armhf" # armhf blocked by qt5-qtdeclarative
url="https://invent.kde.org/plasma-mobile/qmlkonsole"
license="GPL-3.0-or-later"
depends="
qmltermwidget
kirigami2
"
makedepends="
extra-cmake-modules
ki18n-dev
kirigami2-dev
qt5-qtbase-dev
qt5-qtdeclarative-dev
qt5-qtquickcontrols2-dev
qt5-qtsvg-dev
"
source="https://invent.kde.org/plasma-mobile/qmlkonsole/-/archive/$_commit/qmlkonsole-$_commit.tar.gz"
options="!check" # No tests
builddir="$srcdir/$pkgname-$_commit"
prepare() {
default_prepare
# qmlplugindump fails for armv7+qemu (pmb#1970). 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
}
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="17905ea6cb85b5361cda68c07930069fd5aa7339e44849c25b14e99148489669c3d49613c829d8e7c12449fa1aa2ee21d3d73e352aa80aed60225954ed57eca3 qmlkonsole-d34cab3771e1327f7b91a02c4bd49037c770d4e4.tar.gz"