updated on Mon Jan 16 20:00:43 UTC 2012
[aur-mirror.git] / smooth-tasks-fork / PKGBUILD
blob08950db923cfc1017b26391e96a2d49a3fd1dfce
1 # Maintainer: Sergey Malkin <adresatt@gmail.com>
3 pkgname=smooth-tasks-fork
4 pkgver=496
5 pkgrel=4
7 url="https://bitbucket.org/flupp/smooth-tasks-fork/overview"
8 pkgdesc="A fork of great KDE taskbar replacement plasmoid smooth-tasks aimed to improve on animation and
9 layouting."
10 license=('GPLv2')
12 arch=('x86_64' 'i686')
14 _hgroot="https://bitbucket.org/flupp"
15 _hgrepo="smooth-tasks-fork"
17 depends=('kdebase-workspace>=4.3')
18 makedepends=('automoc4' 'cmake' 'mercurial' 'coreutils' 'perl')
20 build() {
21   cd "$srcdir"
22   msg "Connecting to Mercurial server...."
24   if [ -d $_hgrepo ] ; then
25     cd $_hgrepo
26     hg pull -u
27     msg "The local files are updated."
28   else
29     hg clone $_hgroot $_hgrepo
30   fi
32   msg "Mercurial checkout done or server timeout"
33   msg "Starting make..."
35   rm -rf "$srcdir/$_hgrepo-build"
36   cp -r "$srcdir/$_hgrepo" "$srcdir/$_hgrepo-build"
37   cd "$srcdir/$_hgrepo-build"
39   #
40   # BUILD HERE
41   #
43   # Compile the plasmoid
44   cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release || return 1
45   make || return 1
48 package() {
49   cd "$srcdir/$_hgrepo-build"
50   make DESTDIR="${pkgdir}" install || return 1