Advertisement
Guest User

libgpod PKGBUILD + libgpod-git-archlinux-2012-05-20-v2.patch

a guest
May 20th, 2012
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.69 KB | None | 0 0
  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>
  5. # Contributor: Jonas Abrahamsson <JKAbrams(at)aur>
  6.  
  7. pkgname=libgpod-git
  8. pkgver=20120520
  9. pkgrel=2
  10. pkgdesc="A shared library used to access the contents of an iPod"
  11. url="http://www.gtkpod.org/wiki/Libgpod"
  12. arch=(i686 x86_64)
  13. license=('LGPL')
  14. depends=('gtk2' 'libxml2' 'sg3_utils' 'libplist')
  15. makedepends=('perlxml' 'swig' 'git' 'intltool' 'gtk-doc')
  16. options=(!libtool)
  17. conflicts=('libgpod')
  18. replaces=('libgpod')
  19. provides=('libgpod=0.8.0')
  20. source=('http://hem.bredband.net/jserver/libgpod-patch/libgpod-git-archlinux-2012-05-20-v2.patch')
  21. md5sums=('f95f08cb72e3e987abb0318e538701e0')
  22.  
  23. _gitroot=git://gtkpod.git.sourceforge.net/gitroot/gtkpod/libgpod
  24. _gitname=libgpod
  25.  
  26. build(){
  27.     pushd ${srcdir} || return 1
  28.         msg "Connecting to libgpod GIT server..." || return 1
  29.         if [ -d ${srcdir}/${_gitname} ] ; then
  30.             pushd ${_gitname} || return 1
  31.                 if [ -f Makefile ] ; then
  32.                     make clean || return 1
  33.                 fi || return 1
  34.                 git pull origin || return 1
  35.                 msg "Update Complete!" || return 1
  36.             popd || return 1
  37.         else
  38.             git clone ${_gitroot} || return 1
  39.             msg "Download Complete!" || return 1
  40.         fi || return 1
  41.         pushd ${_gitname} || return 1
  42.             patch -Np1 -i ../libgpod-git-archlinux-2012-05-20-v2.patch || return 1
  43.             sh autogen.sh --prefix=/usr || return 1
  44.             make || return 1
  45.             make DESTDIR=${startdir}/pkg install || return 1
  46.         popd || return 1
  47.     popd || return 1
  48.     if [ -d ${pkgdir}/tmp ]; then
  49.         rmdir ${pkgdir}/tmp || return 1
  50.     fi || return 1
  51. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement