Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

libgpod PKGBUILD with libgpod-git-archlinux-2012-05-20.patch

By: a guest on May 20th, 2012  |  syntax: Bash  |  size: 1.69 KB  |  hits: 34  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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=20110518
  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.patch')
  21. md5sums=('b401756e631ced6f4031463a9b946014')
  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.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. }