summaryrefslogtreecommitdiff
path: root/gnome-unstable/libimobiledevice/PKGBUILD
blob: 49c782fbfb0f8c8dde18bfbef51b222ca823537d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# $Id: PKGBUILD 154116 2012-03-23 14:00:54Z ibiru $
# Maintainer : Ionut Biru <ibiru@archlinux.org>
# Contributor: Gabriel Martinez < reitaka at gmail dot com >

pkgname=libimobiledevice
pkgver=1.1.2
pkgrel=1
pkgdesc="Is a software library that talks the protocols to support iPhone and iPod Touch devices on Linux"
url="http://libimobiledevice.org/"
arch=('i686' 'x86_64')
license=('GPL2' 'LGPL2.1')
depends=('usbmuxd' 'libplist')
makedepends=('python2' 'cython2')
options=('!libtool')
source=(http://libimobiledevice.org/downloads/$pkgname-$pkgver.tar.bz2)
md5sums=('82851e4ca9794ee660ffca9f78c8e068')

build() {
  cd "$pkgname-$pkgver"

  mkdir "$srcdir/cython2-path"
  ln -s /usr/bin/cython2 "$srcdir/cython2-path/cython"
  export PATH="$srcdir/cython2-path:$PATH"

  PYTHON=/usr/bin/python2 ./configure --prefix=/usr
  make
}

package() {
  cd "$pkgname-$pkgver"
  make DESTDIR="$pkgdir" install
}