updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / pidgin-git / PKGBUILD
blobaac9aec320af75a7688f2eb4634f12b45064131e
1 # Contributor: Emanuele Rossi <newdna1510@yahoo.it>
2 # Contributor: Alessio 'alexwizard' Sergi <sergi.alessio {at} gmail.com>
4 pkgname=pidgin-git
5 _realname=pidgin
6 pkgver=20090912
7 pkgrel=1
8 pkgdesc="Pidgin Development GIT Version"
9 arch=('i686' 'x86_64')
10 url="http://gitorious.org/pidgin-clone"
11 license=('GPL')
12 depends=('avahi' 'dbus-glib' 'farsight2' 'nss' 'startup-notification')
13 makedepends=('git' 'intltool')
14 optdepends=('tk: Tcl/Tk scripting support'
15             'ca-certificates: SSL CA certificates')
16 provides=(${_realname})
17 conflicts=(${_realname})
18 replaces=('gaim')
19 options=('!libtool')
20 install=${pkgname}.install
21 source=()
22 md5sums=()
24 _gitroot=git://gitorious.org/pidgin-clone/mainline.git
25 _gitname=pidgin-git
27 build() {
28   cd ${srcdir}
30   msg "Connecting to GIT server...."
32   if [ -d ${_gitname} ]; then
33     cd ${_gitname} && git pull origin
34     msg "The local files are updated."
35   else
36     git clone ${_gitroot}
37   fi
39   msg "GIT checkout done or server timeout"
40   msg "Starting make..."
42   [ -d ${_gitname}-build ] && rm -rf ${_gitname}-build
43   git clone ${_gitname} ${_gitname}-build
44   cd ${_gitname}-build
46   ./autogen.sh --prefix=/usr --sysconfdir=/etc --disable-schemas-install \
47     --disable-meanwhile --disable-nm --disable-perl --disable-gnutls \
48     --disable-doxygen --disable-gtkspell --disable-gestures \
49     --disable-consoleui --disable-tk --disable-tcl \
50     --disable-screensaver --with-system-ssl-certs=/etc/ssl/certs || return 1
52   make || return 1
53   make DESTDIR=${pkgdir} install || return 1
55   # Remove GConf schema file
56   rm -rf "$pkgdir/etc" || return 1
58 #  rm -rf ${srcdir}/${_gitname}-build
61 # vim:set ts=2 sw=2 et: