updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / gtkpod-git / PKGBUILD
blob3974021d887c3c524790689f62cb2f5fe356a90a
1 # Contributor: SaThaRiel <sathariel74[at] gmail[dot]com>
2 # Contributor: Ahmed Osman <Ashex@aur>
3  
4 pkgname=gtkpod-git
5 pkgver=20110915
6 pkgrel=1
7 pkgdesc="a platform independent GUI for Apple's iPod using GTK2"
8 arch=('i686' 'x86_64')
9 license=('GPL')
10 url="http://gtkpod.sourceforge.net"
11 depends=('gettext' 'gtk2' 'libgpod-git' 'libid3tag' 'hicolor-icon-theme' 'anjuta')
12 makedepends=('autoconf' 'flex' 'git' 'intltool')
13 optdepends=('libmp4v2: MP4/h264 support' 'libcurl: for coverart download support' 'libgnome-vfs-2.0: for iPod autodetection under GNOME' 'libcurl: for coverart download support' 'libflac: for FLAC support' 'libvorbis: for ogg libvorbis support')
14 conflicts=('gtkpod')
15 install=gtkpod.install
16 provides=('gtkpod')
17 source=()
18 md5sums=()
20 _gitroot=git://gtkpod.git.sourceforge.net/gitroot/gtkpod/gtkpod
21 _gitname=gtkpod
23 build() {
25 if [ -d $srcdir/$_gitname ]
26 then
27     cd $srcdir/$_gitname && git pull
28 else
29     cd $srcdir && git clone -b gtk-3.0 $_gitroot && cd $_gitname
32 ./autogen.sh --prefix=/usr
33 make || return 1
34 make DESTDIR=$pkgdir install || return 1
35 cp $srcdir/$_gitname/src/org.gtkpod.gschema.xml $pkgdir/usr/share/glib-2.0/schemas/
37 rm -rf $srcdir/$_gitname-build