updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / ideviceinstaller-git / PKGBUILD
blob263d1b050e656a2bc0f078e51b5ef995b4edc8da
1 # Contributor: Joeny Ang <ang(dot)joeny(at)gmail(dot)com>
2 # Contributor: Matías Hernández <msdark(at)archlinux(dot)cl>
4 # fixes.patch (biloky):
5 #   2010.09.23 - some Info.plist does not contain a CFBundleName, use 
6 #                CFBundleDisplayName instead
7 #   2011.08.07 - fix gcc4.6 werror=sign-compare error
9 pkgname=ideviceinstaller-git
10 pkgver=20110807
11 pkgrel=1
12 pkgdesc="Manage Applications of an iPhone or iPod Touch"
13 arch=('i686' 'x86_64')
14 url="http://cgit.sukimashita.com/"
15 license=('GPL')
16 groups=('system')
17 depends=('libimobiledevice' 'usbmuxd' 'libzip') 
18 makedepends=('git')
19 provides=(ideviceinstaller)
20 conflicts=()
21 replaces=()
22 backup=()
23 options=()
24 install=
25 noextract=()
26 source=(fixes.patch)
27 md5sums=('468533edc43e4903211ec71406304300')
29 _gitroot="git://git.sukimashita.com/ideviceinstaller.git"
30 _gitname="ideviceinstaller"
32 build() {
33   cd ${srcdir}
34   msg "Connecting to GIT server...."
35   if [ -d ${_gitname} ] ; then
36     cd ${_gitname} && git pull origin
37     msg "The local files are updated."
38   else
39     git clone ${_gitroot} ${_gitname}
40   fi
41   msg "GIT checkout done or server timeout"
43   msg "Starting make..."
44   rm -rf "$srcdir/$_gitname-build"
45   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
47   cd "$srcdir/$_gitname-build"
48   patch -Np0 -i ../fixes.patch
49   ./autogen.sh --prefix=/usr
50   make
53 package() {
54   cd "$srcdir/$_gitname-build"
55   make DESTDIR="$pkgdir/" install
56