updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / xchat-gnome-git / PKGBUILD
blobc86ac8fbc9dd9785306532126aba9f5b6fd69521
1 # Maintainer: György Balló <ballogy@freestart.hu>
2 _pkgname=xchat-gnome
3 pkgname=$_pkgname-git
4 pkgver=20111114
5 pkgrel=1
6 pkgdesc="GNOME frontend to the popular X-Chat IRC client"
7 arch=('i686' 'x86_64')
8 url="http://live.gnome.org/Xchat-Gnome"
9 license=('GPL')
10 depends=('gconf>=2.8.0' 'libsexy>=0.1.11' 'libnotify>=0.7.0' 'libcanberra>=0.3' 'hicolor-icon-theme' 'xdg-utils')
11 makedepends=('git' 'gnome-common' 'intltool>=0.40.0' 'gnome-doc-utils' 'python2' 'tcl')
12 optdepends=('python2: plugin support'
13             'tcl: plugin support')
14 provides=('xchat-gnome')
15 conflicts=('xchat-gnome')
16 options=('!libtool')
17 install=$_pkgname.install
19 _gitroot="git://git.gnome.org/xchat-gnome"
20 _gitname="xchat-gnome"
22 build() {
23   cd "$srcdir"
24   msg "Connecting to GIT server...."
26   if [ -d $_gitname ] ; then
27     cd $_gitname && git pull origin
28     msg "The local files are updated."
29   else
30     git clone $_gitroot $_gitname
31   fi
33   msg "GIT checkout done or server timeout"
34   msg "Starting make..."
36   rm -rf "$srcdir/$_gitname-build"
37   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
38   cd "$srcdir/$_gitname-build"
40   #
41   # BUILD HERE
42   #
44   ./autogen.sh --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
45                --disable-static --disable-scrollkeeper --disable-schemas-install \
46                --with-gconf-schema-file-dir=/usr/share/gconf/schemas \
47                PYTHON=python2
48   make
51 package() {
52   cd "$srcdir/$_gitname-build"
54   make DESTDIR="$pkgdir/" install
56   gconf-merge-schema "$pkgdir/usr/share/gconf/schemas/$_pkgname.schemas" "$pkgdir"/usr/share/gconf/schemas/*.schemas