blob: 56bf64326b74fa23404bac7067dce5c076c3b50d (
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
|
# Maintainer: Christoph Gysin <christoph.gysin@gmail.com>
pkgname=(pasystray pasystray-gtk2)
_pkgname=pasystray
pkgver=0.6.0
pkgrel=3
pkgdesc="PulseAudio system tray (a replacement for padevchooser)"
arch=('i686' 'x86_64')
url="https://github.com/christophgysin/pasystray"
license=('LGPL')
groups=('multimedia')
conflicts=('pasystray')
depends=('libpulse' 'libnotify' 'avahi' 'libx11' 'gnome-icon-theme'
'gtk-update-icon-cache')
makedepends=('pkg-config' 'gtk2' 'gtk3')
optdepends=(
'pulseaudio: To control a local pulseaudio instance'
'paman: Launch PulseAudio manager from tray icon'
'pavucontrol: Launch PulseAudio mixer from tray icon'
'pavumeter: Launch PulseAudio volume meter from tray icon'
'paprefs: Launch PulseAudio preferences from tray icon'
)
source=($_pkgname-$pkgver.tar.gz::https://github.com/christophgysin/$_pkgname/archive/$pkgver.tar.gz)
md5sums=('c7467ac2b75290bd086fc60f8243ad77')
build() {
cp -r $srcdir/$_pkgname{,-gtk2}-$pkgver
for gtk in "" 2; do
cd $srcdir/$_pkgname${gtk:+-gtk$gtk}-$pkgver
autoreconf -is
./configure \
--prefix=/usr \
--sysconfdir=/etc \
${gtk:+--with-gtk=$gtk}
make
done
}
package_pasystray-gtk2() {
depends+=(gtk2)
cd $srcdir/$pkgname-$pkgver
# hack: do not require gtk-3
sed -i \
-e '/<requires /d' \
-e '/license_type/d' \
src/pasystray.glade
make DESTDIR="$pkgdir/" install
}
package_pasystray() {
depends+=(gtk3)
cd $srcdir/$_pkgname-$pkgver
make DESTDIR="$pkgdir/" install
}
|