updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / cloudcity-svn / PKGBUILD
blobc8515e906da4aa55dd5a3ebe2e2b7ee278eae641
1 # Maintainer: Whitney Marshall <whitney.marshall@gmail.com>
2 pkgname=cloudcity-svn
3 pkgver=1436
4 pkgrel=1
5 pkgdesc="A native style for Qt/KDE4"
6 arch=('i686' 'x86_64')
7 url="http://cloudcity.sourceforge.net"
8 license=('LGPL')
9 depends=('kdebase-workspace>=4')
10 makedepends=('subversion')
11 conflicts=('cloudcity')
13 _svntrunk=https://cloudcity.svn.sourceforge.net/svnroot/cloudcity
14 _svnmod=cloudcity
16 build() {
17   cd "$srcdir"
18   msg "Connecting to SVN server...."
20   if [[ -d "$_svnmod/.svn" ]]; then
21     (cd "$_svnmod" && svn up -r "$pkgver")
22   else
23     svn co "$_svntrunk" --config-dir ./ -r "$pkgver" "$_svnmod"
24   fi
26   msg "SVN checkout done or server timeout"
27   msg "Starting build..."
29   rm -rf "$srcdir/$_svnmod-build"
30   cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
31   cd "$srcdir/$_svnmod-build"
33   #
34   # BUILD HERE
35   #
36   cmake -DCMAKE_INSTALL_PREFIX=$(kde4-config --prefix) -DCMAKE_BUILD_TYPE=Release ../$_svnmod
37   make
40 package() {
41   cd "$srcdir/$_svnmod-build"
42   make DESTDIR="$pkgdir/" install
45 # vim:set ts=2 sw=2 et: