Date: Saturday, October 29, 2022 @ 04:27:20
  Author: heftig
Revision: 459414

archrelease: copy trunk to testing-x86_64

Added:
  cheese/repos/testing-x86_64/
  cheese/repos/testing-x86_64/PKGBUILD
    (from rev 459413, cheese/trunk/PKGBUILD)

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

Copied: cheese/repos/testing-x86_64/PKGBUILD (from rev 459413, 
cheese/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD                             (rev 0)
+++ testing-x86_64/PKGBUILD     2022-10-29 04:27:20 UTC (rev 459414)
@@ -0,0 +1,74 @@
+# Maintainer: Jan Alexander Steffens (heftig) <[email protected]>
+# Contributor: Jan de Groot <[email protected]>
+
+pkgbase=cheese
+pkgname=(cheese libcheese)
+pkgver=43alpha+r8+g1de47dbc
+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)
+options=(debug)
+_commit=1de47dbc95db445e31fdc674ea4208f53699f81a  # master
+source=("git+https://gitlab.gnome.org/GNOME/cheese.git#commit=$_commit";)
+sha256sums=('SKIP')
+
+pkgver() {
+  cd cheese
+  git describe --tags | sed 's/\.\([a-z]\)/\1/;s/[^-]*-g/r&/;s/-/+/g'
+}
+
+prepare() {
+  cd cheese
+}
+
+build() {
+  arch-meson cheese build -D tests=true
+  meson compile -C build
+}
+
+check() (
+  export GSETTINGS_SCHEMA_DIR="$PWD/cheese/data"
+  glib-compile-schemas "$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,glib-2.0/schemas,gtk-doc}
+}
+
+package_libcheese() {
+  pkgdesc="Webcam widget for Clutter and GTK"
+  depends=(clutter clutter-gtk clutter-gst gdk-pixbuf2 glib2 gtk3 libcanberra
+           gstreamer gst-plugins-base-libs gst-plugins-bad-libs)
+  provides=(libcheese.so libcheese-gtk.so)
+  mv libs/* "$pkgdir"
+}
+
+# vim:set sw=2 sts=-1 et:

Reply via email to