updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / xchat-gnome / PKGBUILD
blob271b9663191965de42eb42344bffe90061dcfef2
1 # $Id: PKGBUILD 112861 2011-03-07 10:29:01Z eric $
2 # Maintainer: Allan McRae <allan@archlinux.org>
3 # Contributor: Jan de Groot <jgc@archlinux.org>
5 pkgname=xchat-gnome
6 pkgver=0.26.1
7 pkgrel=5
8 pkgdesc="GNOME frontend to the popular X-Chat IRC client."
9 arch=('i686' 'x86_64')
10 license=('GPL')
11 url="http://xchat-gnome.navi.cx/"
12 depends=('libgnomeui>=2.18.1-2' 'libsexy>=0.1.11' 'gconf>=2.18.0.1-4'
13          'hicolor-icon-theme' 'desktop-file-utils' 'libcanberra' 'libsm')
14 makedepends=('gettext' 'perlxml' 'python2' 'tcl' 'libnotify' 'gnome-doc-utils>=0.10.3'
15              'intltool' 'pkg-config')
16 optdepends=('libnotify: notifications'
17             'python2: plugin'
18             'tcl: plugin')
19 options=('!libtool')
20 install=xchat-gnome.install
21 source=(http://ftp.gnome.org/pub/gnome/sources/${pkgname}/0.26/${pkgname}-${pkgver}.tar.gz
22         gtk2-2.20.patch xchat-gnome-0.26.1-deprecated-symbol.patch)
23 md5sums=('e355d71d76cd97a0764e37bfacf09101' 'dafc2536a0c5ee3f8015af81fce69656'\
24          'f82417277f0b5e83334147c4bf63d531')
25 sha1sums=('303bfbf2f1bda83fbc4edab148df4764cb4b8998' 'f1bfc5af50be7c10a9db96be20185325636d8da9'\
26          '9aa0abc4b7999e09cafdeb8da1ad4641552a421b')
28 build() {
29   cd "$srcdir/${pkgname}-${pkgver}"
30   patch -Np1 -i "$srcdir/gtk2-2.20.patch"
31   patch -Np1 -i "$srcdir/xchat-gnome-0.26.1-deprecated-symbol.patch"
32   sed -i 's/notify_notification_new (summary, escaped, NULL, NULL);/notify_notification_new (summary, escaped, NULL);/' plugins/notify-osd/notify-osd.c
33   sed -i -e "s/       /\t/" src/common/dbus/Makefile.in
35   ./configure --prefix=/usr --sysconfdir=/etc \
36               --localstatedir=/var --disable-static \
37               --enable-ipv6 --enable-shm \
38               --disable-gtkfe --disable-scrollkeeper
39   make
42 package() {  
43   cd "$srcdir/${pkgname}-${pkgver}"
44   make GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR="${pkgdir}" install
45   
46   install -d "$pkgdir/usr/share/gconf/schemas"
47   gconf-merge-schema "$pkgdir/usr/share/gconf/schemas/${pkgname}.schemas" \
48     "$pkgdir"/etc/gconf/schemas/*.schemas
49   rm -f "$pkgdir"/etc/gconf/schemas/*.schemas