pmaports/kde/spacebar/APKBUILD

49 lines
1.4 KiB
Text
Raw Normal View History

2019-06-17 13:42:31 +00:00
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=spacebar
pkgver=0_git20201103
pkgrel=0
_commit="025d265297f9fb05a8e735ae32c1f25716424d20"
pkgdesc="Collection of stuff for running IM on Plasma Mobile"
2019-06-17 13:42:31 +00:00
url="https://phabricator.kde.org/source/spacebar/"
arch="all !armhf" # armhf blocked by qt5-qtdeclarative
license="GPL-2.0-or-later AND LicenseRef-KDE-Accepted-GPL"
depends="kirigami2"
makedepends="
extra-cmake-modules
kcontacts-dev
ki18n-dev
kirigami2-dev
knotifications-dev
kpeople-dev
qt5-qtbase-dev
qt5-qtdeclarative-dev
telepathy-qt-dev
"
source="https://github.com/kde/spacebar/archive/$_commit/spacebar-$_commit.tar.gz"
options="!check" # No tests
2019-06-17 13:42:31 +00:00
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
}
2019-06-17 13:42:31 +00:00
build() {
cmake -B build \
-DCMAKE_BUILD_TYPE=None \
2019-06-17 13:42:31 +00:00
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib
cmake --build build
2019-06-17 13:42:31 +00:00
}
package() {
DESTDIR="$pkgdir" cmake --build build --target install
2019-06-17 13:42:31 +00:00
}
sha512sums="0686148bf9d6630bc4d344c5d1898856796a489ab268cfbe532b03f97b8cb7afde6ce6ffc1fbd2adebdcb3d226d7ed6a58275702fb1abb7f5683419660831eda spacebar-025d265297f9fb05a8e735ae32c1f25716424d20.tar.gz"