[arch-commits] Commit in libcanberra/repos (3 files)

Jan Steffens heftig at archlinux.org
Tue May 25 17:38:11 UTC 2021


    Date: Tuesday, May 25, 2021 @ 17:38:11
  Author: heftig
Revision: 416450

archrelease: copy trunk to testing-x86_64

Added:
  libcanberra/repos/testing-x86_64/
  libcanberra/repos/testing-x86_64/40-libcanberra-gtk-module.sh
    (from rev 416449, libcanberra/trunk/40-libcanberra-gtk-module.sh)
  libcanberra/repos/testing-x86_64/PKGBUILD
    (from rev 416449, libcanberra/trunk/PKGBUILD)

------------------------------+
 40-libcanberra-gtk-module.sh |   13 +++++++++
 PKGBUILD                     |   56 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 69 insertions(+)

Copied: libcanberra/repos/testing-x86_64/40-libcanberra-gtk-module.sh (from rev 416449, libcanberra/trunk/40-libcanberra-gtk-module.sh)
===================================================================
--- testing-x86_64/40-libcanberra-gtk-module.sh	                        (rev 0)
+++ testing-x86_64/40-libcanberra-gtk-module.sh	2021-05-25 17:38:11 UTC (rev 416450)
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+case "${DESKTOP_SESSION-}" in
+  gnome*) # Done by gnome-settings-daemon
+  ;;
+  *)
+    # Extra check in case DESKTOP_SESSION is not set correctly
+    if [ -z "${GNOME_DESKTOP_SESSION_ID-}" ]; then
+      GTK_MODULES="${GTK_MODULES:+$GTK_MODULES:}canberra-gtk-module"
+      export GTK_MODULES
+    fi
+  ;;
+esac

Copied: libcanberra/repos/testing-x86_64/PKGBUILD (from rev 416449, libcanberra/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2021-05-25 17:38:11 UTC (rev 416450)
@@ -0,0 +1,56 @@
+# Maintainer: Jan de Groot <jgc at archlinux.org>
+
+pkgname=libcanberra
+pkgver=0.30+2+gc0620e4
+pkgrel=4
+pkgdesc="A small and lightweight implementation of the XDG Sound Theme Specification"
+url="http://0pointer.de/lennart/projects/libcanberra"
+arch=(x86_64)
+license=(LGPL)
+depends=(libvorbis libltdl alsa-lib libpulse tdb sound-theme-freedesktop)
+makedepends=(gtk-doc gtk2 gtk3 git)
+provides=("libcanberra-pulse=$pkgver-$pkgrel" libcanberra{,-gtk,-gtk3}.so)
+replaces=("libcanberra-pulse<0.30+2+gc0620e4-4")
+options=(libtool)
+_commit=c0620e432650e81062c1967cc669829dbd29b310  # master
+source=("git+http://git.0pointer.net/clone/libcanberra.git#commit=$_commit"
+        40-libcanberra-gtk-module.sh)
+sha256sums=('SKIP'
+            'a0d0b135d3fea5c703a5f84208b79d66f671b082ae85f67b629ee2568a7ddc30')
+
+pkgver() {
+  cd libcanberra
+  git describe --tags | sed 's/^v//;s/-/+/g'
+}
+
+prepare() {
+  cd libcanberra
+  ./autogen.sh
+}
+
+build() {
+  cd libcanberra
+  ./configure --sysconfdir=/etc --prefix=/usr --localstatedir=/var \
+      --disable-static --with-builtin=dso --enable-null --disable-oss \
+      --enable-alsa --enable-pulse \
+      --with-systemdsystemunitdir=/usr/lib/systemd/system --enable-gtk-doc
+  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
+  make
+}
+
+package_libcanberra() {
+  cd libcanberra
+
+  make -j1 DESTDIR="$pkgdir" install
+
+  rm "$pkgdir"/usr/lib/*.la
+  rm "$pkgdir"/usr/lib/gtk-{2,3}.0/modules/*.la
+
+  # FS#52370: Remove login, logout and system-ready sounds.
+  # We have no sound themes that include these so do not play them.
+  rm -r "$pkgdir"/usr/share/{gnome,gdm}
+
+  install -Dt "$pkgdir/etc/X11/xinit/xinitrc.d" ../40-libcanberra-gtk-module.sh
+}
+
+# vim:set sw=2 et:



More information about the arch-commits mailing list