updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / vacuum-kinotifications-hg / PKGBUILD
blob34c5c0325ee919c6816ad73b44e6362bbb5c649e
1 # Maintainer: Mikhail Borisov <borisov.mikhail@gmail.com>
3 pkgname=vacuum-kinotifications-hg
4 pkgver=3
5 pkgrel=1
6 pkgdesc="Kinetic notification plugin for Vacuum IM"
7 arch=('i686' 'x86_64')
8 url="http://code.google.com/p/vacuum-plugins/"
9 license=('GPL')
10 depends=(vacuum)
11 makedepends=('mercurial' 'git')
12 provides=(vacuum-kinotifications)
14 _hgroot="https://kinotifications.vacuum-plugins.googlecode.com/hg/"
15 _hgrepo="vacuum-plugins-kinotifications"
17 _vacuum_git="git://gitorious.org/vacuum-im/vacuum-im.git"
18 _vacuum_repo="vacuum"
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     cd "$srcdir"
29   else
30     hg clone $_hgroot $_hgrepo
31   fi
33   msg "Mercurial checkout done or server timeout"
35   msg "Fetching Vacuum sources from git"
37   if [ -d $_vacuum_repo ] ; then
38     cd $_vacuum_repo
39     git pull
40     msg "The local files are updated."
41     cd "$srcdir"
42   else
43     git clone $_vacuum_git $_vacuum_repo
44   fi
46   msg "Starting make..."
48   rm -rf "$_hgrepo-build"
49   cp -r "$_hgrepo" "$_hgrepo-build"
50   cd "$_hgrepo-build"
52   qmake "INSTALL_PREFIX=$pkgdir/usr" "VACUUM_SOURCE_PATH=$srcdir/$_vacuum_repo"
53   make
56 package() {
57   cd "$srcdir/$_hgrepo-build"
58   make install
59