aboutsummaryrefslogtreecommitdiffstats
path: root/community/maliit-framework/APKBUILD
blob: fc63b4b654ddc97cd278a39f5c9e9faae8d33d3d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=maliit-framework
pkgver=2.0.0
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 --install build
}
sha512sums="640ae6aee25723ba22ec524b6598ea94bd34ca83be2314b74cd3dff9cddf95f34a62ffc58588782de4d2d2c6f1a09f9e388d56adf8d32752678d6895eb37db17  maliit-framework-2.0.0.tar.gz"