1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
2 # Contributor: Jan de Groot <jgc@archlinux.org>
11 pkgdesc="Take photos and videos with your webcam, with fun graphical effects"
12 url="https://wiki.gnome.org/Apps/Cheese"
38 checkdepends=(xorg-server-xvfb)
39 _commit=7dbce9f06de65233ab0bf20e59a85d04850b94a8 # tags/44.0.1^0
40 source=("git+https://gitlab.gnome.org/GNOME/cheese.git#commit=$_commit")
45 git describe --tags | sed 's/\.\([a-z]\)/\1/;s/[^-]*-g/r&/;s/-/+/g'
53 arch-meson cheese build -D tests=true
54 meson compile -C build
58 export GSETTINGS_SCHEMA_DIR="$PWD/cheese/data"
59 glib-compile-schemas "$GSETTINGS_SCHEMA_DIR"
61 dbus-run-session xvfb-run -s '-nolisten local' \
62 meson test -C build --print-errorlogs
66 local p="$1" f d; shift
68 d="$srcdir/$p/${f#$pkgdir/}"
69 mkdir -p "$(dirname "$d")"
71 rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
76 depends+=("libcheese=$pkgver-$pkgrel")
79 meson install -C build --destdir "$pkgdir"
83 _pick libs usr/include
84 _pick libs usr/lib/{girepository-1.0,libcheese*,pkgconfig}
85 _pick libs usr/share/{gir-1.0,glib-2.0/schemas,gtk-doc}
89 pkgdesc="Webcam widget for Clutter and GTK"
102 provides=(libcheese{,-gtk}.so)
107 # vim:set sw=2 sts=-1 et: