1 # Contributor: Nicolas Quienot <niQo(at)aur>
2 # Contributor: Dustin Mays <dork.fish.wat(at)gmail(dot)com>
3 # Contributor: Kenny Stocoff <sogenfallen(at)hotmail(dot)com>
4 # Contributor: Prurigro <prurigro(at)gmail(dot)com>
9 pkgdesc="A shared library used to access the contents of an iPod"
10 url="http://www.gtkpod.org/wiki/Libgpod"
13 depends=('gtk2' 'libxml2' 'sg3_utils' 'libplist')
14 makedepends=('perlxml' 'swig' 'git' 'intltool' 'gtk-doc')
18 provides=('libgpod=0.8.0')
22 _gitroot=git://gtkpod.git.sourceforge.net/gitroot/gtkpod/libgpod
26 pushd ${srcdir} || return 1
27 msg "Connecting to libgpod GIT server..." || return 1
28 if [ -d ${srcdir}/${_gitname} ] ; then
29 pushd ${_gitname} || return 1
30 if [ -f Makefile ] ; then
31 make clean || return 1
33 git pull origin || return 1
34 msg "Update Complete!" || return 1
37 git clone ${_gitroot} || return 1
38 msg "Download Complete!" || return 1
40 pushd ${_gitname} || return 1
41 sh autogen.sh --prefix=/usr || return 1
43 make DESTDIR=${startdir}/pkg install || return 1
46 if [ -d ${pkgdir}/tmp ]; then
47 rmdir ${pkgdir}/tmp || return 1