updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / dimpress3d-svn / PKGBUILD
bloba0426140fc4972ff4a8c10824ca4f601deca05c4
1 # Contributor: Flamelab <panosfilip@gmail.com>
3 pkgname=dimpress3d-svn
4 pkgver=187
5 pkgrel=1
6 pkgdesc="A program which allows users to create presentations to a three dimensional environment"
7 arch=(i686 x86_64)
8 url="http://code.google.com/p/dimpress3d/"
9 license=('GPL3')
10 depends=('qt' 'kdelibs')
11 makedepends=('cmake>=2.4' 'automoc4' 'subversion')
13 _svntrunk="http://dimpress3d.googlecode.com/svn/trunk/"
14 _svnmod="dimpress3d"
16 build() {
17   cd ${srcdir}
19   if [[ -d ${_svnmod}/.svn ]]; then
20      (cd ${_svnmod} && svn up -r $pkgver)
21   else
22      svn co ${_svntrunk} --config-dir ./ -r ${pkgver} ${_svnmod}
23   fi
25   msg "SVN checkout done or server timeout"
26   msg "Starting make..."
28   rm -rf ${srcdir}/${_svnmod}-build
29   cp -r ${srcdir}/${_svnmod} ${srcdir}/${_svnmod}-build
30   cd ${srcdir}/${_svnmod}-build
32   cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` -DENABLE_ARGB=ON \
33         -DCMAKE_BUILD_TYPE=Release || return 1
34   make || return 1
35   make DESTDIR=${pkgdir} install || return 1