updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / kdeplasma-addons-applets-smooth-tasks-kde-sc-46-hg / PKGBUILD
blobb81f22f2ae7716c5f162d616f6650aad4fe5590b
1 # Maintainer: Florian Léger <florian6 dot leger at laposte dot net>
3 pkgname=kdeplasma-addons-applets-smooth-tasks-kde-sc-46-hg
4 pkgver=401
5 pkgrel=1
6 arch=('x86_64' 'i686')
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"
9 license=('GPLv2')
10 groups=(kde)
11 depends=('kdebase-workspace')
12 makedepends=('automoc4' 'cmake' 'mercurial' 'coreutils' 'perl')
13 provides=(smooth-tasks)
14 conflicts=(smooth-tasks)
15 install=plasmoid.install
16 md5sums=()
18 _hgroot="http://bitbucket.org/jimi312"
19 _hgrepo="smooth-tasks-kde-sc-4.6"
22 build() {
23   cd "$srcdir"
24   msg "Connecting to Mercurial server...."
26   if [ -d $_hgrepo ] ; then
27     cd $_hgrepo
28     hg pull -u
29     msg "The local files are updated."
30   else
31     hg clone $_hgroot $_hgrepo
32   fi
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"
41   #
42   # BUILD HERE
43   #
44   
45   # Compile the plasmoid
46   cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release || return 1
47   make || return 1
50 package() {
51   cd "$srcdir/$_hgrepo-build"
52   make DESTDIR="${pkgdir}" install || return 1