updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / conspire-client-hg / PKGBUILD
blob8077f11285b7d886aa231758dbff7396d02df390
1 # Contributor: JD Horelick <jdhore1@gmail.com>
2 pkgname=conspire-client-hg
3 pkgver=952
4 pkgrel=2
5 pkgdesc="An advanced, lightweight IRC client for UNIX - DEVELOPMENT VERSION"
6 arch=('i686' 'x86_64')
7 url="http://www.nenolod.net/conspire"
8 license=('GPL')
9 depends=('gtk2' 'libmowgli' 'dbus-glib' 'gnutls' 'python' 'libnotify' 'libsexy')
10 makedepends=('pkgconfig' 'mercurial')
11 source=()
12 md5sums=()
14 _hgroot=http://hg.atheme.org/
15 _hgrepo=conspire/
16 _hgbuild=conspire
18 build() {
19         cd ${startdir}/src
21         if [ -d ${_hgrepo} ]; then
22                 cd ${startdir}/src/${_hgrepo}
23                 hg pull -u
24         else
25                 hg clone ${_hgroot}${_hgrepo} || return 1
26                 cd ${startdir}/src/${_hgbuild}
27         fi
29         msg "Mercurial checkout done or server timeout"
30         msg "Starting make..."
32         cp -R ${startdir}/src/${_hgbuild} ${startdir}/src/${_hgbuild}-build
33         cd ${startdir}/src/${_hgbuild}-build
34         ./autogen.sh
35         ./configure --prefix=/usr
36         make || return 1
37         make DESTDIR=$startdir/pkg install || return 1
38         rm -rf ${startdir}/src/${_hgbuild}-build