aboutsummaryrefslogblamecommitdiffstats
path: root/community/maliit-framework/APKBUILD
blob: 93622b458b3be35cf71eb89b48efa76f0d2489ac (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                  













                             








                                                                                                              
                                            



















                                                                                                                                                                             
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=maliit-framework
pkgver=0.99.2
pkgrel=0
pkgdesc="Core libraries of Maliit and server"
arch="all !armhf" # Blocked by qt5-qtdeclarative
url="https://github.com/maliit/framework"
license="LGPL-2.1-only"
depends_dev="
	eudev-dev
	gtk+3.0-dev
	qt5-qtbase-dev
	qt5-qtdeclarative-dev
	qt5-qtwayland-dev
	wayland-dev
	"
makedepends="$depends_dev
	cmake
	doxygen
	graphviz
	wayland-protocols
	"
checkdepends="xvfb-run"
source="$pkgname-$pkgver.tar.gz::https://github.com/maliit/framework/archive/$pkgver/framework-$pkgver.tar.gz"
subpackages="$pkgname-dev $pkgname-doc"
builddir="$srcdir/framework-$pkgver"

prepare() {
	default_prepare

	# Hack to make CMake find qtwaylandscanner
	export PATH="$PATH:/usr/lib/qt5/bin"
}

build() {
	cmake -B build \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-Denable-wayland-gtk=ON
	cmake --build build
}

check() {
	cd build
	CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest
}

package() {
	DESTDIR="$pkgdir" cmake --build build --target install
}
sha512sums="6e16a548741f98d0b7a6e2b994ee10fb4e68e9de680dfc9af96dec7cdca8303167375763a9b61bcfe4a2e4abe1145df3cfc038294c0cc144f477bd4abb7ebf28  maliit-framework-0.99.2.tar.gz"