updated on Sun Jan 15 04:04:02 UTC 2012
[aur-mirror.git] / pyexiv2-bzr / PKGBUILD
blobe555b24d345d29f6274f6be502a9448dda8fcf86
1 # Contributor: János Illés <ijanos@gmail.com>
2 # Contributor: Archie <xMickael@ifrance.com>
3 # Contributor: Byron Clark <byron@theclarkfamily.name>
5 pkgname=pyexiv2-bzr
6 pkgver=367
7 pkgrel=1
8 pkgdesc="a python binding to exiv2"
9 depends=('python2' 'boost-libs' 'exiv2')
10 makedepends=('scons' 'boost' 'bzr')
11 arch=('i686' 'x86_64')
12 conflicts=('pyexiv2')
13 provides=('pyexiv2')
14 license=('GPL')
15 source=()
16 url="http://tilloy.net/dev/pyexiv2"
18 _bzrbranch=lp:pyexiv2
19 _bzrname=pyexiv2
21 build() {
22     cd ${srcdir}
23     msg "Connecting to BZR server..."
25     if [ -d ${srcdir}/${_bzrname} ] ; then
26       cd ${_bzrname} && bzr pull ${_bzrbranch}
27       msg "Local repository updated."
28     else
29       bzr co ${_bzrbranch}
30     fi
31     #bzr branch ${_bzrbranch} -q -r ${pkgver}
32     cd ${startdir}
34     msg "BZR checkout done or server timeout"
35         cd $srcdir/$_bzrname
36         scons
37         scons DESTDIR=$pkgdir install