updated on Tue Jan 17 12:00:36 UTC 2012
[aur-mirror.git] / libqtdee-bzr / PKGBUILD
blobdf818a7af3e09ed249e206afee6a5b1b797f3c75
1 # Contributor: Marius Dransfeld <marius.dransfeld@googlemail.com>
3 pkgname=libqtdee-bzr
4 pkgver=38
5 pkgrel=1
6 pkgdesc="Qt bindings for libdee"
7 arch=('i686' 'x86_64')
8 url="https://launchpad.net/dee-qt"
9 license=('GPL')
10 depends=('qt' 'dee-bzr')
11 makedepends=('cmake' 'bzr')
12 source=('libqtdee.pc')
13 md5sums=('a7b0e53bedcb38df4edd205ba926e680')
14 conflicts=('libqtdee')
15 provides=('libqtdee')
16 groups=('unity2d-bzr')
18 _bzrtrunk=lp:dee-qt
19 _bzrmod=dee-qt
21 build() {
22   cd "$srcdir"
23   
24   if [ -d ${_bzrmod} ]; then
25     bzr up ${_bzrmod}
26     msg "The local files are updated."
27   else
28     bzr co ${_bzrtrunk} ${_bzrmod}
29   fi
30   if [[ -d ${srcdir}/build ]]; then
31     msg "Cleaning the previous build directory..."
32     rm -rf ${srcdir}/build 
33   fi
34   mkdir $srcdir/build
35   cd $srcdir/build
36   cmake $srcdir/$_bzrmod -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr
37   make
40 package() { 
41   cd ${srcdir}/build
42   make DESTDIR="${pkgdir}" install
43   install -D -m644 $srcdir/libqtdee.pc ${pkgdir}/usr/lib/pkgconfig/libqtdee.pc