Advertisement
Guest User

Untitled

a guest
Dec 28th, 2010
310
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.30 KB | None | 0 0
  1. # Contributor: Matias Hernandez <msdark@archlinux.cl>
  2. pkgname=libimobiledevice-git
  3. pkgver=20101030
  4. pkgrel=5
  5. pkgdesc="libimobiledevice is a software library that talks the protocols to support iPhone and iPod Touch devices on Linux"
  6. url="http://www.libimobiledevice.org/"
  7. arch=('i686' 'x86_64')
  8. license=('GPL2' 'LGPL2.1')
  9. depends=('gnutls' 'libgcrypt' 'glib2' 'libplist' 'usbmuxd')
  10. makedepends=('swig' 'python2')
  11. provides=('libiphone-git' 'libiphone' 'libimobiledevice=1.2')
  12. conflicts=('libiphone-git' 'libiphone' 'libimobiledevice')
  13. options=(!libtool)
  14. replaces=()
  15. backup=()
  16. options=()
  17. install=
  18. noextract=()
  19. md5sums=() #generate with 'makepkg -g'
  20.  
  21. _gitroot="http://git.sukimashita.com/libimobiledevice.git"
  22. _gitname="libimobiledevice"
  23.  
  24. build() {
  25.   cd "$srcdir"
  26.   msg "Connecting to GIT server...."
  27.  
  28.   if [ -d $_gitname ] ; then
  29.     cd $_gitname && git pull origin
  30.     msg "The local files are updated."
  31.   else
  32.     git clone $_gitroot $_gitname
  33.   fi
  34.  
  35.   msg "GIT checkout done or server timeout"
  36.   msg "Starting make..."
  37.  
  38.   rm -rf "$srcdir/$_gitname-build"
  39.   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
  40.   cd "$srcdir/$_gitname-build"
  41.  
  42.   #
  43.   # BUILD HERE
  44.   #
  45.   PYTHON=/usr/bin/python2 ./autogen.sh --prefix=/usr --without-swig
  46.   make || return 1
  47.   make DESTDIR="$pkgdir/" install
  48. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement