updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / libplist-git / PKGBUILD
blobe44663842a95bc0fe7d869920cb96d5216ea8737
1 # Maintainer: Adam Eberlin < ae at adameberlin dot com >
3 pkgname=libplist-git
4 pkgver=20090416
5 pkgrel=1
6 pkgdesc="A library to handle Apple's Property List format (binary + XML)."
7 url="http://github.com/JonathanBeck/libplist/tree/master"
8 arch=('i686' 'x86_64')
9 license=('GPL')
10 depends=('glib2' 'libxml2')
11 makedepends=('gcc' 'git' 'make' 'cmake' 'swig')
12 provides=('libplist')
14 _gitroot="git://github.com/JonathanBeck/libplist.git"
15 _gitname="libplist"
17 build() {
19         cd ${srcdir}
20         msg "Connecting to GIT server...."
22         if [ -d ${srcdir}/$_gitname ] ; then
23                 cd $_gitname && git pull origin
24                 msg "Local repository updated."
25         else
26                 git clone $_gitroot $_gitname
27         fi
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..."
41         mkdir build
42         cd build
43         cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr ..
45         make || return 1
46         make DESTDIR=${pkgdir} install || return 1