updated on Sat Jan 21 12:00:39 UTC 2012
[aur-mirror.git] / kdetoys4-svn / PKGBUILD
blobd5eb09f0c3f69fb043d1f0c81b6ed144847828be
1 # Contributor: Lawrence Lee <valheru@facticius.net>
2 pkgname=kdetoys4-svn
3 pkgver=765399
4 pkgrel=3
5 pkgdesc="Toys for KDE4"
6 arch=('i686' 'x86_64')
7 url="http://www.kde.org"
8 license=('GPL')
9 depends=('kdebase4-workspace-svn')
10 makedepends=('subversion' 'cmake')
11 provides=(kdetoys4)
12 conflicts=(kdetoys4)
13 source=()
14 md5sums=()
15 groups=('kde4.0-svn')
16 _svntrunk=svn://anonsvn.kde.org/home/kde/trunk/KDE/kdetoys
17 _svnmod=kdetoys
19 build() {
20   . $startdir/kde4.profile
22   # start building
23   cd $startdir/src
25   if [ -d $_svnmod/.svn ]; then
26     (cd $_svnmod && svn up)
27   else
28     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
29   fi
31   msg "SVN checkout done or server timeout"
32   msg "Starting make..."
34   cp -r $_svnmod $_svnmod-build
35   cd $_svnmod-build
37   cmake $startdir/src/$_svnmod -DCMAKE_INSTALL_PREFIX=/opt/kde4 -DCMAKE_BUILD_TYPE=RELWITHDEBINFO
39   make || return 1
40   make DESTDIR=$startdir/pkg install || return 1
42   #clean up build directory
43   rm -rf $startdir/src/$_svnmod-build