1 # Maintainer: Adam Eberlin < ae at adameberlin dot com >
6 pkgdesc="A library to handle Apple's Property List format (binary + XML)."
7 url="http://github.com/JonathanBeck/libplist/tree/master"
10 depends=('glib2' 'libxml2')
11 makedepends=('gcc' 'git' 'make' 'cmake' 'swig')
14 _gitroot="git://github.com/JonathanBeck/libplist.git"
20 msg "Connecting to GIT server...."
22 if [ -d ${srcdir}/$_gitname ] ; then
23 cd $_gitname && git pull origin
24 msg "Local repository updated."
26 git clone $_gitroot $_gitname
29 msg "GIT checkout done or server timeout"
31 msg "Removing old build directory..."
32 rm -Irf ${srcdir}/$_gitname-build
34 msg "Creating new build directory..."
35 cp -r ${srcdir}/$_gitname ${srcdir}/$_gitname-build
37 cd ${srcdir}/$_gitname-build
39 msg "Starting make..."
43 cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr ..
46 make DESTDIR=${pkgdir} install || return 1