aboutsummaryrefslogtreecommitdiff
path: root/libimobiledevice/Pkgfile
blob: 2b517d1b4663077b2b2d405e30e33ae71c4c3494 (plain) (blame)
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
# Description: A cross-platform protocol library to communicate with iOS devices
# URL: https://github.com/libimobiledevice/libimobiledevice
# Maintainer: mac-a-r0ni, j at lngn dot net
# Depends on: libusbmuxd

name=libimobiledevice
version=1.3.0
release=2
source=(https://github.com/libimobiledevice/libimobiledevice/releases/download/1.3.0/libimobiledevice-1.3.0.tar.bz2 libimobiledevice-libplist-2.3.0.patch)

build()
{

cd $name-${version}*

  # Fix build with libplist 2.3.0
  patch -Np1 -i ../libimobiledevice-libplist-2.3.0.patch

  autoreconf -fvi

  ./configure --prefix=/usr --without-cython
  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
  make

  make DESTDIR=$PKG install
  rm $PKG/usr/lib/*.la

}