aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBart Ribbers <bribbers@disroot.org>2020-08-13 17:19:41 +0200
committerRasmus Thomsen <oss@cogitri.dev>2020-08-19 14:38:18 +0000
commit8616b42cd95fd2c8494a1244ef08c7fbbb1080de (patch)
tree82546f0a4c6aabf783359f3f452fc83934b291c9
parent16ace452cb1f2851f04400577158746694ee0aca (diff)
downloadaports-8616b42cd95fd2c8494a1244ef08c7fbbb1080de.tar.gz
aports-8616b42cd95fd2c8494a1244ef08c7fbbb1080de.tar.bz2
aports-8616b42cd95fd2c8494a1244ef08c7fbbb1080de.tar.xz
testing/maliit-framework: new aport
-rw-r--r--testing/maliit-framework/APKBUILD42
1 files changed, 42 insertions, 0 deletions
diff --git a/testing/maliit-framework/APKBUILD b/testing/maliit-framework/APKBUILD
new file mode 100644
index 0000000000..19a7788667
--- /dev/null
+++ b/testing/maliit-framework/APKBUILD
@@ -0,0 +1,42 @@
+# 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="qt5-qtbase-dev qt5-qtdeclarative-dev qt5-qtwayland-dev wayland-dev eudev-dev gtk+3.0-dev"
+makedepends="$depends_dev cmake wayland-protocols doxygen graphviz"
+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
+ ln -s /usr/lib/qt5/bin/qtwaylandscanner "$PWD"/qtwaylandscanner
+ export PATH="$PATH:$PWD"
+}
+
+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"