[arch-commits] Commit in cheese/repos (2 files)

Jan Steffens heftig at gemini.archlinux.org
Sun Oct 31 21:08:51 UTC 2021


    Date: Sunday, October 31, 2021 @ 21:08:51
  Author: heftig
Revision: 426911

archrelease: copy trunk to gnome-unstable-x86_64

Added:
  cheese/repos/gnome-unstable-x86_64/
  cheese/repos/gnome-unstable-x86_64/PKGBUILD
    (from rev 426910, cheese/trunk/PKGBUILD)

----------+
 PKGBUILD |   73 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 73 insertions(+)

Copied: cheese/repos/gnome-unstable-x86_64/PKGBUILD (from rev 426910, cheese/trunk/PKGBUILD)
===================================================================
--- gnome-unstable-x86_64/PKGBUILD	                        (rev 0)
+++ gnome-unstable-x86_64/PKGBUILD	2021-10-31 21:08:51 UTC (rev 426911)
@@ -0,0 +1,73 @@
+# Maintainer: Jan Alexander Steffens (heftig) <heftig at archlinux.org>
+# Contributor: Jan de Groot <jgc at archlinux.org>
+
+pkgbase=cheese
+pkgname=(cheese libcheese)
+pkgver=41.0
+pkgrel=1
+pkgdesc="Take photos and videos with your webcam, with fun graphical effects"
+url="https://wiki.gnome.org/Apps/Cheese"
+arch=(x86_64)
+license=(GPL)
+depends=(gtk3 gstreamer gst-plugins-bad gst-plugins-base gst-plugins-good clutter-gst clutter-gtk
+         libcanberra librsvg gnome-desktop libgudev dconf gnome-video-effects)
+makedepends=(gobject-introspection vala git appstream-glib meson yelp-tools)
+checkdepends=(xorg-server-xvfb)
+_commit=92ef18589eb10fab08f0806846c66d1e1383c78d  # tags/41.0^0
+source=("git+https://gitlab.gnome.org/GNOME/cheese.git#commit=$_commit")
+sha256sums=('SKIP')
+
+pkgver() {
+  cd cheese
+  git describe --tags | sed 's/-/+/g'
+}
+
+prepare() {
+  cd cheese
+}
+
+build() {
+  arch-meson cheese build -D tests=true
+  meson compile -C build
+}
+
+check() (
+  glib-compile-schemas "${GSETTINGS_SCHEMA_DIR:=$PWD/cheese/data}"
+  export GSETTINGS_SCHEMA_DIR
+
+  dbus-run-session xvfb-run -s '-nolisten local' \
+    meson test -C build --print-errorlogs
+)
+
+_pick() {
+  local p="$1" f d; shift
+  for f; do
+    d="$srcdir/$p/${f#$pkgdir/}"
+    mkdir -p "$(dirname "$d")"
+    mv "$f" "$d"
+    rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
+  done
+}
+
+package_cheese() {
+  depends+=("libcheese=$pkgver-$pkgrel")
+  groups=(gnome)
+
+  meson install -C build --destdir "$pkgdir"
+
+  cd "$pkgdir"
+
+  _pick libs usr/include
+  _pick libs usr/lib/{girepository-1.0,libcheese*,pkgconfig}
+  _pick libs usr/share/{gir-1.0,gtk-doc}
+}
+
+package_libcheese() {
+  pkgdesc="Webcam widget for Clutter and GTK"
+  depends=(clutter clutter-gtk clutter-gst gdk-pixbuf2 glib2 gtk3 gstreamer
+           gst-plugins-base-libs gst-plugins-bad-libs)
+  provides=(libcheese.so libcheese-gtk.so)
+  mv libs/* "$pkgdir"
+}
+
+# vim:set sw=2 et:



More information about the arch-commits mailing list