1 # Contributor: Ajsin Roman <aysin.roman@gmail.com>
3 pkgname=plasma-nextwallpaper-plasmoid-git
6 pkgdesc="Simple applet that changes the current wallpaper (when in slideshow mode) on command."
8 url="http://kde-look.org/content/show.php/Next+wallpaper?content=94251"
11 depends=('kdebase-workspace')
12 makedepends=('gcc' 'cmake' 'automoc4')
13 conflicts=('plasma-nextwallpaper-plasmoid')
18 _gitroot="git://github.com/dpalacio/plasma-nextwallpaper.git"
19 _gitname="plasma-nextwallpaper"
23 msg "Connecting to GIT server...."
25 if [ -d ${srcdir}/$_gitname ] ; then
26 cd $_gitname && git pull origin || return 1
27 msg "The local files are updated."
29 git clone $_gitroot $_gitname
32 msg "GIT checkout done or server timeout"
33 msg "Starting make..."
36 [ -d $_gitname-build ] && rm -rf $_gitname-build
37 git clone $_gitname $_gitname-build
38 cd ${srcdir}/$_gitname-build
40 mkdir build && cd build
41 cmake -DCMAKE_INSTALL_PREFIX=/usr .. || return 1
43 make DESTDIR="$pkgdir/" install
46 # vim:set ts=2 sw=2 et: