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>
8 pkgdesc="GNOME frontend to the popular X-Chat IRC client."
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'
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')
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
43 cd "$srcdir/${pkgname}-${pkgver}"
44 make GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR="${pkgdir}" install
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