# Contributor: Jakub Jirutka # Maintainer: Jakub Jirutka pkgname=kooha pkgver=2.2.3 pkgrel=1 pkgdesc="Elegantly record your screen" url="https://github.com/SeaDve/Kooha" arch="aarch64 armhf armv7 ppc64le x86 x86_64" # blocked by rust/cargo license="GPL-3.0-or-later" depends=" gst-plugin-pipewire gst-plugins-good pipewire xdg-desktop-portal " makedepends=" cargo gettext-dev glib-dev gst-plugins-base-dev gst-plugins-ugly gst-vaapi gstreamer-dev gtk4.0-dev libadwaita-dev meson pulseaudio-dev wayland-dev x264-dev " checkdepends=" cmd:desktop-file-validate xvfb-run " install="$pkgname.post-install" subpackages="$pkgname-lang $pkgname-mp4" source="https://github.com/SeaDve/Kooha/releases/download/v$pkgver/kooha-$pkgver.tar.xz fix-tests.patch no-clippy.patch " # TODO: Find out why I didn't originally use panic=abort and if it's still relevant. export CARGO_PROFILE_RELEASE_PANIC="unwind" prepare() { default_prepare # TODO: Remove after removing fix-tests.patch. cargo vendor --locked } build() { abuild-meson -Db_lto=true . output meson compile -j ${JOBS:-0} -C output } check() { xvfb-run --auto-servernum meson test --no-rebuild --print-errorlogs -C output } package() { DESTDIR="$pkgdir" meson install --no-rebuild -C output } mp4() { pkgdesc="Kooha dependencies for recording into MP4 format" depends="$pkgname=$pkgver-r$pkgrel gst-plugins-ugly" mkdir -p "$subpkgdir" } sha512sums=" 687bd38bdd4385059c5c625d41b4634dbdd86b7cf13d4ea811bfff46fd4fc1a7096ad94d6c55d935fd24e067ba9e6f60dc9b842264880d2394fca06dc0de2bb0 kooha-2.2.3.tar.xz 824aab983e1af71aeed31710b2c9729db2e96454a5ad6961492fcc8d285b53f59b91b4d22bee6f44ad5c586d50cdee0fff539558c7c899d6b7ae9e7c0b99c969 fix-tests.patch ef27d071e403c8bda6f67a49bcb70bb2d630609bdf509a9ace82d8971a4240c31914d7319066679c10d51f63fcf42261030af276428ae024bca2c4ad04230590 no-clippy.patch "