updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / libqtbamf-bzr / PKGBUILD
blobcecf528ffc642be8c72dba33c0217f75616bf151
1 # Contributor: Marius Dransfeld <marius.dransfeld@googlemail.com>
2 pkgname=libqtbamf-bzr
3 pkgver=381
4 pkgrel=1
5 pkgdesc="Qt bindings for libbamf"
6 arch=('i686' 'x86_64')
7 url="https://launchpad.net/bamf-qt"
8 license=('GPL')
9 depends=('qt' 'bamf-daemon')
10 makedepends=('cmake' 'bzr')
11 conflicts=('libqtbamf')
12 replaces=('libqtbamf')
13 groups=('unity2d-bzr')
15 _bzrtrunk=lp:bamf-qt
16 _bzrmod=bamf-qt
18 build() {
19   cd "$srcdir"
20   
21   if [ -d ${_bzrmod} ]; then
22     bzr up ${_bzrmod}
23     msg "The local files are updated."
24   else
25     bzr co ${_bzrtrunk} ${_bzrmod}
26   fi
27   if [[ -d ${srcdir}/build ]]; then
28     msg "Cleaning the previous build directory..."
29     rm -rf ${srcdir}/build 
30   fi
31   mkdir $srcdir/build
32   cd $srcdir/build
33   cmake $srcdir/$_bzrmod -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr
34   make
37 package() { 
38   cd ${srcdir}/build
39   make DESTDIR="${pkgdir}" install