updated on Thu Jan 26 12:02:26 UTC 2012
[aur-mirror.git] / taimetraquer-svn / PKGBUILD
blobf39e4803f8a53409056b8e809333658d3ccb4b87
1 # Contributor: mutlu_inek <mutlu_inek@yahoo.de>
3 pkgname=taimetraquer-svn
4 pkgver=1149837
5 pkgrel=1
6 pkgdesc="A plamsa widget to track the use of time like gtimelog"
7 url="http://liveblue.wordpress.com/2010/07/14/back-from-finland-new-plasmoid-in-playground/"
8 license=(GPL)
9 arch=('i686')
10 depends=('kdebase-workspace')
11 makedepends=('cmake' 'subversion')
12 conflicts=()
13 provides=()
14 source=()
15 md5sums=()
17 _svntrunk="svn://anonsvn.kde.org/home/kde/trunk/playground/base/plasma/applets/taimetraquer"
18 _svnmod="taimetraquer"
20 build() {
21    cd ${srcdir}
23    msg "Connecting to SVN server...."
25    if [ -d ${_svnmod}/.svn ]; then
26      (cd ${_svnmod} && svn up -r $pkgver)
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    svn export ${_svnmod} ${_svnmod}-build
35    cd ${_svnmod}-build
37    cmake -DCMAKE_INSTALL_PREFIX=/usr
38    make || return 1
39    make DESTDIR=$pkgdir install || return 1
41    rm -rf ${srcdir}/${_svnmod}-build