1 # Maintainer: Auguste Pop <auguste [at] gmail [dot] com>
6 pkgdesc="A lyric show compatible with various media players"
8 url="http://code.google.com/p/osd-lyrics/"
10 depends=('gtk2' 'dbus-glib' 'curl' 'libnotify' 'sqlite3'
11 'desktop-file-utils' 'hicolor-icon-theme')
12 makedepends=('intltool')
13 optdepends=('libmpd: MPD support'
14 'xmms2: XMMS2 support')
15 install=$pkgname.install
16 source=(http://osd-lyrics.googlecode.com/files/$pkgname-$pkgver.tar.gz
17 http://osd-lyrics.googlecode.com/files/$pkgname-$pkgver-glib.patch)
18 md5sums=('80d704b97a72a117bb9890948adcf79c'
19 '23cabc6a12a32383e8a84dd873566fc2')
22 _tmpfile="$pkgdir/.tmp"
26 pkg-config $1 && echo "$3" >> "$_tmpfile" || _ods=("${_ods[@]}" "$2")
31 for _idx in ${!optdepends[@]}
33 if [[ "${optdepends[$_idx]}" =~ ^$1:* ]]
35 unset optdepends[$_idx]
43 cd "$srcdir/$pkgname-$pkgver"
44 patch -p1 -i "$srcdir/$pkgname-$pkgver-glib.patch"
49 automake --add-missing
52 add_ods libmpd "--disable-mpd" libmpd
53 add_ods xmms2-client "--disable-xmms2" xmms2
55 LIBS=-lm ./configure --prefix=/usr "${_ods[@]}"
61 cd "$srcdir/$pkgname-$pkgver"
62 make DESTDIR="$pkgdir" install
66 if [ 1 -gt 0 ]; then depends=("${depends[@]}" "$_ch"); fi
67 unset_optdepend "$_ch"
69 optdepends=("${optdepends[@]}")