1 # Maintainer: Florian Léger <florian6 dot leger at laposte dot net>
3 pkgname=kdeplasma-addons-applets-smooth-tasks-kde-sc-46-hg
7 pkgdesc="A taskbar replacement Plasmoid with window peeking similar to Windows 7. Compatible with KDE SC 4.6."
8 url="https://bitbucket.org/jimi312/smooth-tasks-kde-sc-4.6"
11 depends=('kdebase-workspace')
12 makedepends=('automoc4' 'cmake' 'mercurial' 'coreutils' 'perl')
13 provides=(smooth-tasks)
14 conflicts=(smooth-tasks)
15 install=plasmoid.install
18 _hgroot="http://bitbucket.org/jimi312"
19 _hgrepo="smooth-tasks-kde-sc-4.6"
24 msg "Connecting to Mercurial server...."
26 if [ -d $_hgrepo ] ; then
29 msg "The local files are updated."
31 hg clone $_hgroot $_hgrepo
34 msg "Mercurial checkout done or server timeout"
35 msg "Starting make..."
37 rm -rf "$srcdir/$_hgrepo-build"
38 cp -r "$srcdir/$_hgrepo" "$srcdir/$_hgrepo-build"
39 cd "$srcdir/$_hgrepo-build"
45 # Compile the plasmoid
46 cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release || return 1
51 cd "$srcdir/$_hgrepo-build"
52 make DESTDIR="${pkgdir}" install || return 1