1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
2 # Contributor: Jan de Groot <jgc@archlinux.org>
5 pkgname=(cheese libcheese)
8 pkgdesc="Take photos and videos with your webcam, with fun graphical effects"
9 url="https://wiki.gnome.org/Apps/Cheese"
12 depends=(gtk3 gstreamer gst-plugins-bad gst-plugins-base gst-plugins-good clutter-gst clutter-gtk
13 libcanberra librsvg gnome-desktop libgudev dconf gnome-video-effects)
14 makedepends=(gobject-introspection vala git appstream-glib meson yelp-tools)
15 checkdepends=(xorg-server-xvfb)
17 _commit=9e89a0da8d6d0da14b0b461051c064c419fc86d5 # tags/43.0^0
18 source=("git+https://gitlab.gnome.org/GNOME/cheese.git#commit=$_commit")
23 git describe --tags | sed 's/\.\([a-z]\)/\1/;s/[^-]*-g/r&/;s/-/+/g'
31 arch-meson cheese build -D tests=true
32 meson compile -C build
36 export GSETTINGS_SCHEMA_DIR="$PWD/cheese/data"
37 glib-compile-schemas "$GSETTINGS_SCHEMA_DIR"
39 dbus-run-session xvfb-run -s '-nolisten local' \
40 meson test -C build --print-errorlogs
44 local p="$1" f d; shift
46 d="$srcdir/$p/${f#$pkgdir/}"
47 mkdir -p "$(dirname "$d")"
49 rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
54 depends+=("libcheese=$pkgver-$pkgrel")
57 meson install -C build --destdir "$pkgdir"
61 _pick libs usr/include
62 _pick libs usr/lib/{girepository-1.0,libcheese*,pkgconfig}
63 _pick libs usr/share/{gir-1.0,glib-2.0/schemas,gtk-doc}
67 pkgdesc="Webcam widget for Clutter and GTK"
68 depends=(clutter clutter-gtk clutter-gst gdk-pixbuf2 glib2 gtk3 libcanberra
69 gstreamer gst-plugins-base-libs gst-plugins-bad-libs)
70 provides=(libcheese.so libcheese-gtk.so)
74 # vim:set sw=2 sts=-1 et: