updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / yawp-weather-plasmoid-svn / PKGBUILD
blobb0eaa553bfe9d1d8a6ab75a2cc92e0b1866ea072
1 # Maintainer: t3ddy  <t3ddy1988 "at" gmail {dot} com>
3 pkgname=yawp-weather-plasmoid-svn
4 pkgver=450
5 pkgrel=1
6 pkgdesc="Colorful kdeplasma weather plasmoid"
7 arch=('i686' 'x86_64')
8 url="http://www.kde-look.org/content/show.php/yaWP+(Yet+Another+Weather+Plasmoid)?content=94106"
9 depends=('kdebase-workspace>=4.2' 'gettext')
10 makedepends=('cmake' 'make' 'automoc4')
11 conflicts=('kde-extragear-plasmoids' 'yawp-weather-plasmoid')
12 provides=('yawp-weather-plasmoid')
13 license=('GPL')
15 _svnmod="yawp"
16 _svntrunk="https://yawp.svn.sourceforge.net/svnroot/yawp/trunk"
18 build() {
19   msg "Starting SVN checkout..."
20   
21   cd $srcdir
22     if [ -d $_svnmod/.svn ]; then
23       (cd $_svnmod && svn up -r $pkgver)
24     else
25       svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
26     fi
27   msg "SVN checkout done or server timeout"
29   msg "Starting make..."
31   cd $_svnmod
32   cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` . || return 1
33   make DESTDIR=${pkgdir} install || return 1