# Maintainer: Simon Zeni pkgname=libei pkgver=1.0.0 pkgrel=2 _munit=fbbdf1467eb0d04a6ee465def2e529e4c87f2118 pkgdesc="Emulated Input library" url="https://gitlab.freedesktop.org/libinput/libei" # s390x: broken tests arch="all !s390x" license="MIT" makedepends=" basu-dev libevdev-dev libxkbcommon-dev meson py3-attrs py3-jinja2 " checkdepends=" libxml2-utils py3-dbusmock py3-pytest py3-structlog py3-yaml " subpackages=" $pkgname-dev libei libeis liboeffis $pkgname-utils " source="https://gitlab.freedesktop.org/libinput/libei/-/archive/$pkgver/libei-$pkgver.tar.bz2 munit-$_munit.tar.gz::https://github.com/nemequ/munit/archive/$_munit.tar.gz std.patch " prepare() { default_prepare ln -sfv "$srcdir"/munit-$_munit subprojects/munit } build() { abuild-meson \ -Db_lto=true \ -Dliboeffis=enabled \ -Dsd-bus-provider=basu \ -Dtests="$(want_check && echo enabled || echo disabled)" \ . output meson compile -C output } check() { meson test -t 5 --no-rebuild --print-errorlogs -C output } package() { DESTDIR="$pkgdir" meson install --no-rebuild -C output } libei() { amove usr/lib/libei.so.* } libeis() { amove usr/lib/libeis.so.* } liboeffis() { amove usr/lib/liboeffis.so.* } utils() { amove usr/bin } sha512sums=" 145b514782fb500bed09437200d0fb989aa0a2cd81d1752938f9b4819ae8130510b2a4a65231bacb8565fcddaa1ffd1925c84cd3a5d34eaa4918ec05105465f6 libei-1.0.0.tar.bz2 26b5599fd12be627a692823ebf496fa446be7ed04a1233fb42e0667c05109b0f804f76646e289ac660fc815baf45f77ec8caf0ff2ea7fb0b4f87f0038a2b971c munit-fbbdf1467eb0d04a6ee465def2e529e4c87f2118.tar.gz bcf2d911d42817ceb751c40b2889370551a115a83fc85e7db7ce59683a8f30b47302aff91b4bacd9a7360a5681724becb2cfaed048e1ce7faaaaab14a9e97e7f std.patch "