From 55213772a04e5eaa8e22ff0ff89613afb0200148 Mon Sep 17 00:00:00 2001 From: Luca Weiss Date: Mon, 1 Mar 2021 20:27:16 +0100 Subject: [PATCH] testing/umockdev: new aport --- testing/umockdev/APKBUILD | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 testing/umockdev/APKBUILD diff --git a/testing/umockdev/APKBUILD b/testing/umockdev/APKBUILD new file mode 100644 index 00000000000..839952c67f0 --- /dev/null +++ b/testing/umockdev/APKBUILD @@ -0,0 +1,33 @@ +# Maintainer: Luca Weiss +pkgname=umockdev +pkgver=0.15.4 +pkgrel=0 +pkgdesc="Mock hardware devices for creating unit tests and bug reporting" +arch="all !x86 !armv7" # time64 issue https://github.com/martinpitt/umockdev/issues/120 +url="https://github.com/martinpitt/umockdev" +license="LGPL-2.1-or-later" +makedepends="eudev-dev gtk-doc meson vala" +checkdepends="gobject-introspection-dev gphoto2 libgudev-dev py3-gobject3 usbutils xz" +if [ "$CARCH" != "ppc64le" ]; then + checkdepends="$checkdepends evtest" +fi +source="https://github.com/martinpitt/umockdev/archive/$pkgver/umockdev-$pkgver.tar.gz" +subpackages="$pkgname-dev $pkgname-doc" +options="!check" # Tests fail spuriously on several arches + +build() { + abuild-meson \ + -Dgtk_doc=true \ + . output + meson compile ${JOBS:+-j ${JOBS}} -C output +} + +check() { + meson test --no-rebuild -v -C output +} + +package() { + DESTDIR="$pkgdir" meson install --no-rebuild -C output +} + +sha512sums="dc04a14cdce8caba180c53e3403e312f05b946968161dfc02ba3edfb52e5ff45b7a4923e0ccb16abff32754965fce581eabdb32d139ce2af12ca6bef2e39d9bd umockdev-0.15.4.tar.gz"