updated on Sat Jan 21 04:00:54 UTC 2012
[aur-mirror.git] / libgpod-git / PKGBUILD
bloba0a972c26c90ec7a452b149fc7e64faefe2e6a56
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>
6 pkgname=libgpod-git
7 pkgver=20110518
8 pkgrel=2
9 pkgdesc="A shared library used to access the contents of an iPod"
10 url="http://www.gtkpod.org/wiki/Libgpod"
11 arch=(i686 x86_64)
12 license=('LGPL')
13 depends=('gtk2' 'libxml2' 'sg3_utils' 'libplist')
14 makedepends=('perlxml' 'swig' 'git' 'intltool' 'gtk-doc')
15 options=(!libtool)
16 conflicts=('libgpod')
17 replaces=('libgpod')
18 provides=('libgpod=0.8.0')
19 source=()
20 md5sums=()
22 _gitroot=git://gtkpod.git.sourceforge.net/gitroot/gtkpod/libgpod
23 _gitname=libgpod
25 build(){
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
32                                 fi || return 1
33                                 git pull origin || return 1
34                                 msg "Update Complete!" || return 1
35                         popd || return 1
36                 else
37                         git clone ${_gitroot} || return 1
38                         msg "Download Complete!" || return 1
39                 fi || return 1
40                 pushd ${_gitname} || return 1
41                         sh autogen.sh --prefix=/usr || return 1
42                         make || return 1
43                         make DESTDIR=${startdir}/pkg install || return 1
44                 popd || return 1
45         popd || return 1
46         if [ -d ${pkgdir}/tmp ]; then
47                 rmdir ${pkgdir}/tmp || return 1
48         fi || return 1