From e6b369ebbfad093c4351ccf6676b7c733872add7 Mon Sep 17 00:00:00 2001 From: onekk Date: Tue, 13 May 2014 14:45:13 +0200 Subject: [PATCH] New Package: Hexchat - IRC Client successor of Xchat Seems it is more mantained than Xchat Regards Carlo --- srcpkgs/hexchat/template | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 srcpkgs/hexchat/template diff --git a/srcpkgs/hexchat/template b/srcpkgs/hexchat/template new file mode 100644 index 0000000000..924fa4a0bc --- /dev/null +++ b/srcpkgs/hexchat/template @@ -0,0 +1,29 @@ +# Template file for 'hexchat' +pkgname=hexchat +version=2.9.6.1 +revision=1 +lib32disabled=yes +build_style=gnu-configure +hostmakedepends="pkg-config gdk-pixbuf-devel " +makedepends="gtk+-devel openssl-devel dbus-glib-devel perl python-devel + libnotify-devel libcanberra-devel libxml2-devel" +configure_args=" --sysconfdir=/etc --enable-openssl --enable-dbus + --disable-textfe --enable-ipv6 --enable-shm --enable-spell=static" +short_desc="A GTK+ based IRC client successor of Xchat" +maintainer="Carlo Dormeletti " +homepage="http://hexchat.github.io/" +license="GPL" +distfiles="http://dl.hexchat.net/hexchat/${pkgname}-${version}.tar.xz" +checksum=6267ff3c4d0aec8a808365b384115a769d5001d99dbb10403634667c43966470 +make_build_args="LDFLAGS=-lgmodule-2.0" + +pre_configure() { + local perlflags= + # Fix perl library path + if [ "$CROSS_BUILD" ];then + perlflags=`perl -MExtUtils::Embed -e ldopts | sed \ + -e 's/-lgdbm //' \ + -e "s#/usr/lib#${XBPS_CROSS_BASE}\0#"` + sed -i "s#PERL_LDFLAGS=#\0$perlflags#" configure + fi +}