summaryrefslogtreecommitdiffstats
path: root/extra/libplist/Pkgfile
blob: cf4ff5acc92ec093a044cf7b0c0fe9a9baf2f8c5 (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
# Description: Librairie pour materiel Apple
# URL: http://libimobiledevice.org/
# Maintainer: NuTyX core team
# Packager: lesibel at free dot fr
# Depends on: cmake, libxml2, glib, python, swig

name=libplist
version=1.3
release=1
source=(http://cloud.github.com/downloads/JonathanBeck/$name/$name-$version.tar.bz2)

build() {
	cd $SRC/$name-$version/cmake/modules
  	cp /usr/share/cmake-2.8/Modules/FindPython*.cmake .
  	sed -i -e 's#2.6#2.7 2.6#' FindPythonLibs.cmake
  	sed -i -e 's#python2.6#python2.7 python2.6#' FindPythonInterp.cmake
	
  	cd $SRC
  	mkdir build
  	cd build
  	cmake ../$name-$version \
		-DCMAKE_SKIP_RPATH=ON \
      		-DCMAKE_INSTALL_PREFIX:PATH=/usr
  make
  make DESTDIR=$PKG install
}