1 # Maintainer: Tolbkni Kao <tolbkni@gmail.com>
5 pkgdesc="An OSD lyric show supporting multiple media players and downloading."
7 url="https://github.com/tigersoldier/osd-lyrics/"
9 depends=('curl' 'dbus-glib' 'desktop-file-utils' 'gtk2' 'hicolor-icon-theme' 'libnotify' 'sqlite3')
10 makedepends=('git' 'pkgconfig' 'intltool')
11 optdepends=('libmpd: MPD support'
12 'xmms2: XMMS2 support')
13 conflicts=('osdlyrics')
14 provides=('osdlyrics')
15 install=$pkgname.install
20 _gitroot="git://github.com/tigersoldier/osd-lyrics.git"
26 msg "Connecting to github.com GIT server"
28 if [ -d $_gitname ] ; then
29 cd $_gitname && git pull origin
30 msg "The local files are updated."
32 git clone --depth=1 $_gitroot $_gitname --branch $_branchname
35 msg "GIT checkout done or server timeout"
37 msg "Starting make..."
39 rm -rf "$srcdir/$_gitname-build"
40 cp -R "$srcdir/$_gitname" "$srcdir/$_gitname-build"
41 cd "$srcdir/$_gitname-build"
45 if [ "$_libmpd" = "false" ] ; then
46 options="$options --disable-mpd"
49 if [ "$_xmms2" = "false" ] ; then
50 options="$options --disable-xmms2"
53 ./configure --prefix=/usr $options
59 cd "$srcdir/$_gitname-build"
60 make DESTDIR="$pkgdir/" install