updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / kdeplasma-applets-smooth-tasks / PKGBUILD
blob259179b0ab5f61834b21680a0882ac36c44c9624
1 # Maintainer: Andrea Scarpino <andrea@archlinux.org>
3 pkgname=kdeplasma-applets-smooth-tasks
4 pkgver=412
5 pkgrel=1
6 url="https://bitbucket.org/jimi312/smooth-tasks-kde-sc-4.6"
7 pkgdesc="A taskbar replacement Plasmoid with window peeking similar to Windows 7"
8 arch=('x86_64' 'i686')
9 license=('GPL2')
10 depends=('kdebase-workspace')
11 makedepends=('automoc4' 'cmake' 'mercurial')
13 _hgroot="http://bitbucket.org/jimi312/"
14 _hgrepo="smooth-tasks-kde-sc-4.6"
16 build() {
17   cd "${srcdir}"
18   msg "Connecting to Mercurial server...."
20   if [ -d $_hgrepo ] ; then
21     cd $_hgrepo
22     hg pull -u
23     msg "The local files are updated."
24   else
25     hg clone $_hgroot $_hgrepo
26   fi
28   msg "Mercurial checkout done or server timeout"
29   msg "Starting make..."
31   rm -rf "${srcdir}"/build
32   mkdir "${srcdir}"/build
33   cd "${srcdir}"/build
34   cmake ../$_hgrepo \
35     -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` \
36     -DCMAKE_BUILD_TYPE=Release
37   make
40 package() {
41   cd "${srcdir}"/build
42   make DESTDIR="${pkgdir}" install