blob: 381582e068e2f810437473f47037a1d6f3156bcf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=libcanberra
pkgver=0.30
pkgrel=1
pkgdesc="simple audio library for GTK applications"
url="http://0pointer.de/lennart/projects/libcanberra/"
license="LGPL"
depends=
makedepends="gtk+-dev libogg-dev libvorbis-dev alsa-lib-dev libtool gtk+3.0-dev"
install=
subpackages="$pkgname-dev $pkgname-doc $pkgname-gtk2 $pkgname-gtk3"
source="http://dev.alpinelinux.org/archive/$pkgname/$pkgname-$pkgver.tar.xz"
arch="all"
depends_dev="$makedepends"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
cd "$_builddir"
update_config_sub || return 1
}
build() {
cd "$_builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
|| return 1
make || return 1
}
package() {
cd "$_builddir"
make -j1 DESTDIR="$pkgdir" install || return 1
}
gtk2() {
pkgdesc="Gtk+ 2.x Bindings for libcanberra"
mkdir -p "$subpkgdir"/usr/lib || return 1
mv "$pkgdir"/usr/lib/libcanberra-gtk.so.* \
"$subpkgdir"/usr/lib/ || return 1
mv "$pkgdir"/usr/lib/gtk-2.0 \
"$subpkgdir"/usr/lib/ || return 1
}
gtk3() {
pkgdesc="Gtk+ 3.x Bindings for libcanberra"
mkdir -p "$subpkgdir"/usr/lib/gnome-settings-daemon-3.0/gtk-modules \
"$subpkgdir"/usr/bin \
"$subpkgdir"/usr/share/gnome/autostart \
"$subpkgdir"/usr/share/gnome/shutdown \
"$subpkgdir"/usr/share/gdm/autostart/LoginWindow || return 1
mv "$pkgdir"/usr/lib/gtk-3.0 \
"$subpkgdir"/usr/lib || return 1
mv "$pkgdir"/usr/lib/libcanberra-gtk3.so.* \
"$subpkgdir"/usr/lib || return 1
mv "$pkgdir"/usr/bin/canberra-gtk-play \
"$subpkgdir"/usr/bin/ || return 1
mv "$pkgdir"/usr/share/gnome/autostart/libcanberra-login-sound.desktop \
"$subpkgdir"/usr/share/gnome/autostart || return 1
mv "$pkgdir"/usr/share/gnome/shutdown/libcanberra-logout-sound.sh \
"$subpkgdir"/usr/share/gnome/autostart/ || return 1
mv "$pkgdir"/usr/share/gdm/autostart/LoginWindow/libcanberra-ready-sound.desktop \
"$subpkgdir"/usr/share/gdm/autostart/LoginWindow/ || return 1
mv "$pkgdir"/usr/lib/gnome-settings-daemon-3.0/gtk-modules/canberra-gtk-module.desktop \
"$subpkgdir"/usr/lib/gnome-settings-daemon-3.0/gtk-modules/ || return 1
}
md5sums="34cb7e4430afaf6f447c4ebdb9b42072 libcanberra-0.30.tar.xz"
|