Browse Source

git subrepo clone gitea@gitea.artixlinux.org:packagesL/libcanberra.git

subrepo:
  subdir:   "libcanberra"
  merged:   "284a936"
upstream:
  origin:   "gitea@gitea.artixlinux.org:packagesL/libcanberra.git"
  branch:   "master"
  commit:   "284a936"
git-subrepo:
  version:  "0.4.0"
  origin:   "???"
  commit:   "???"
master
artoo 3 years ago
parent
commit
b5e460adee
Signed by: artoo
GPG Key ID: 3292CD0BB0DB310B
  1. 5
      libcanberra/.artixlinux/agent.yaml
  2. 33
      libcanberra/.gitignore
  3. 12
      libcanberra/.gitrepo
  4. 3
      libcanberra/Jenkinsfile
  5. 2
      libcanberra/README.md
  6. 82
      libcanberra/repos/extra-x86_64/PKGBUILD
  7. 13
      libcanberra/repos/extra-x86_64/libcanberra.xinit
  8. 82
      libcanberra/trunk/PKGBUILD
  9. 13
      libcanberra/trunk/libcanberra.xinit

5
libcanberra/.artixlinux/agent.yaml

@ -0,0 +1,5 @@
%YAML 1.2
---
label: master

33
libcanberra/.gitignore vendored

@ -0,0 +1,33 @@
# ---> ArchLinuxPackages
*.tar
*.tar.*
*.jar
*.exe
*.msi
*.zip
*.tgz
*.log
*.log.*
*.sig
pkg/
src/
# ---> Archives
*.7z
*.rar
*.gz
*.bzip
*.bz2
*.xz
*.lzma
*.cab
# ---> systemd
*.service
*.socket
*.timer
# ---> snap
*.snap

12
libcanberra/.gitrepo

@ -0,0 +1,12 @@
; DO NOT EDIT (unless you know what you are doing)
;
; This subdirectory is a git "subrepo", and this file is maintained by the
; git-subrepo command. See https://github.com/git-commands/git-subrepo#readme
;
[subrepo]
remote = gitea@gitea.artixlinux.org:packagesL/libcanberra.git
branch = master
commit = 284a9361b721635b837269f93e648da5a1b0f756
parent = c0504564fb6c19a642a1c6526ba71151373c02af
method = merge
cmdver = 0.4.0

3
libcanberra/Jenkinsfile vendored

@ -0,0 +1,3 @@
@Library('artix-ci') import org.artixlinux.RepoPackage
PackagePipeline(new RepoPackage(this))

2
libcanberra/README.md

@ -0,0 +1,2 @@
# libcanberra

82
libcanberra/repos/extra-x86_64/PKGBUILD

@ -0,0 +1,82 @@
# Maintainer: Jan de Groot <jgc@archlinux.org>
pkgbase=libcanberra
pkgname=(libcanberra libcanberra-pulse libcanberra-gstreamer)
pkgver=0.30+2+gc0620e4
pkgrel=2
pkgdesc="A small and lightweight implementation of the XDG Sound Theme Specification"
arch=(x86_64)
license=(LGPL)
depends=(libvorbis libltdl alsa-lib tdb sound-theme-freedesktop)
makedepends=(gtk-doc libpulse gstreamer gtk2 gtk3 git)
options=(!emptydirs libtool)
url="http://0pointer.de/lennart/projects/libcanberra"
_commit=c0620e432650e81062c1967cc669829dbd29b310 # master
source=("git+http://git.0pointer.net/clone/libcanberra.git#commit=$_commit" libcanberra.xinit)
sha256sums=('SKIP'
'a0d0b135d3fea5c703a5f84208b79d66f671b082ae85f67b629ee2568a7ddc30')
_plugindir=usr/lib/$pkgbase-0.30
pkgver() {
cd $pkgname
git describe --tags | sed 's/^v//;s/-/+/g'
}
prepare() {
cd $pkgbase
./autogen.sh
}
build() {
cd $pkgbase
./configure --sysconfdir=/etc --prefix=/usr --localstatedir=/var \
--disable-static --with-builtin=dso --enable-null --disable-oss \
--enable-alsa --enable-gstreamer --enable-pulse \
--with-systemdsystemunitdir=no --enable-gtk-doc
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
}
package_libcanberra() {
optdepends=("$pkgbase-pulse: PulseAudio driver"
"$pkgbase-gstreamer: GStreamer driver")
cd $pkgbase
make -j1 DESTDIR="$pkgdir" install
rm "$pkgdir"/usr/lib/libcanberra-gtk*.la
rm "$pkgdir"/usr/lib/gtk-{2,3}.0/modules/*.la
install -D "$srcdir/libcanberra.xinit" \
"$pkgdir/etc/X11/xinit/xinitrc.d/40-libcanberra-gtk-module.sh"
# Split plugins
for _p in pulse gstreamer; do
mkdir ../$_p-plugin
mv "$pkgdir/$_plugindir"/libcanberra-$_p.* ../$_p-plugin
done
# FS#52370: Remove login, logout and system-ready sounds.
# We have no sound themes that include these so do not play them.
rm -f "$pkgdir/usr/share/gnome/autostart/libcanberra-login-sound.desktop"
rm -f "$pkgdir/usr/share/gnome/shutdown/libcanberra-logout-sound.sh"
rm -f "$pkgdir/usr/share/gdm/autostart/LoginWindow/libcanberra-ready-sound.desktop"
}
package_libcanberra-pulse() {
pkgdesc="PulseAudio plugin for libcanberra"
depends=("$pkgbase=$pkgver-$pkgrel" libpulse)
install -d "$pkgdir/$_plugindir"
mv pulse-plugin/* "$pkgdir/$_plugindir"
}
package_libcanberra-gstreamer() {
pkgdesc="GStreamer plugin for libcanberra"
depends=("$pkgbase=$pkgver-$pkgrel" gstreamer)
install -d "$pkgdir/$_plugindir"
mv gstreamer-plugin/* "$pkgdir/$_plugindir"
}

13
libcanberra/repos/extra-x86_64/libcanberra.xinit

@ -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

82
libcanberra/trunk/PKGBUILD

@ -0,0 +1,82 @@
# Maintainer: Jan de Groot <jgc@archlinux.org>
pkgbase=libcanberra
pkgname=(libcanberra libcanberra-pulse libcanberra-gstreamer)
pkgver=0.30+2+gc0620e4
pkgrel=2
pkgdesc="A small and lightweight implementation of the XDG Sound Theme Specification"
arch=(x86_64)
license=(LGPL)
depends=(libvorbis libltdl alsa-lib tdb sound-theme-freedesktop)
makedepends=(gtk-doc libpulse gstreamer gtk2 gtk3 git)
options=(!emptydirs libtool)
url="http://0pointer.de/lennart/projects/libcanberra"
_commit=c0620e432650e81062c1967cc669829dbd29b310 # master
source=("git+http://git.0pointer.net/clone/libcanberra.git#commit=$_commit" libcanberra.xinit)
sha256sums=('SKIP'
'a0d0b135d3fea5c703a5f84208b79d66f671b082ae85f67b629ee2568a7ddc30')
_plugindir=usr/lib/$pkgbase-0.30
pkgver() {
cd $pkgname
git describe --tags | sed 's/^v//;s/-/+/g'
}
prepare() {
cd $pkgbase
./autogen.sh
}
build() {
cd $pkgbase
./configure --sysconfdir=/etc --prefix=/usr --localstatedir=/var \
--disable-static --with-builtin=dso --enable-null --disable-oss \
--enable-alsa --enable-gstreamer --enable-pulse \
--with-systemdsystemunitdir=no --enable-gtk-doc
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
}
package_libcanberra() {
optdepends=("$pkgbase-pulse: PulseAudio driver"
"$pkgbase-gstreamer: GStreamer driver")
cd $pkgbase
make -j1 DESTDIR="$pkgdir" install
rm "$pkgdir"/usr/lib/libcanberra-gtk*.la
rm "$pkgdir"/usr/lib/gtk-{2,3}.0/modules/*.la
install -D "$srcdir/libcanberra.xinit" \
"$pkgdir/etc/X11/xinit/xinitrc.d/40-libcanberra-gtk-module.sh"
# Split plugins
for _p in pulse gstreamer; do
mkdir ../$_p-plugin
mv "$pkgdir/$_plugindir"/libcanberra-$_p.* ../$_p-plugin
done
# FS#52370: Remove login, logout and system-ready sounds.
# We have no sound themes that include these so do not play them.
rm -f "$pkgdir/usr/share/gnome/autostart/libcanberra-login-sound.desktop"
rm -f "$pkgdir/usr/share/gnome/shutdown/libcanberra-logout-sound.sh"
rm -f "$pkgdir/usr/share/gdm/autostart/LoginWindow/libcanberra-ready-sound.desktop"
}
package_libcanberra-pulse() {
pkgdesc="PulseAudio plugin for libcanberra"
depends=("$pkgbase=$pkgver-$pkgrel" libpulse)
install -d "$pkgdir/$_plugindir"
mv pulse-plugin/* "$pkgdir/$_plugindir"
}
package_libcanberra-gstreamer() {
pkgdesc="GStreamer plugin for libcanberra"
depends=("$pkgbase=$pkgver-$pkgrel" gstreamer)
install -d "$pkgdir/$_plugindir"
mv gstreamer-plugin/* "$pkgdir/$_plugindir"
}

13
libcanberra/trunk/libcanberra.xinit

@ -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
Loading…
Cancel
Save