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
18 md5sums=('958c8dcf6af0f94529d013c28cdad998'
19 '0464875f1fc91f7c19104c59d1646fe6')
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 -Np1 -i "$srcdir/liclib-4.x.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[@]}")