2014-05-13 12:45:13 +00:00
|
|
|
# Template file for 'hexchat'
|
|
|
|
pkgname=hexchat
|
2014-09-08 13:44:53 +00:00
|
|
|
version=2.10.1
|
2014-10-11 08:48:15 +00:00
|
|
|
revision=2
|
2014-05-13 12:45:13 +00:00
|
|
|
lib32disabled=yes
|
|
|
|
build_style=gnu-configure
|
2014-09-08 14:00:58 +00:00
|
|
|
hostmakedepends="pkg-config gdk-pixbuf-devel intltool"
|
2014-07-15 15:16:34 +00:00
|
|
|
makedepends="gtk+-devel libressl-devel dbus-glib-devel perl python-devel
|
2014-05-13 13:37:41 +00:00
|
|
|
libnotify-devel libcanberra-devel libxml2-devel pciutils-devel
|
2014-10-11 08:48:15 +00:00
|
|
|
desktop-file-utils iso-codes"
|
|
|
|
depends="desktop-file-utils enchant"
|
2014-05-13 13:37:41 +00:00
|
|
|
configure_args=" --enable-openssl --enable-dbus
|
2014-10-11 08:48:15 +00:00
|
|
|
--disable-textfe --enable-ipv6 "
|
|
|
|
## --enable-spell=static"
|
2014-05-13 12:45:13 +00:00
|
|
|
short_desc="A GTK+ based IRC client successor of Xchat"
|
2014-10-11 08:48:15 +00:00
|
|
|
maintainer="Carlo Dormeletti <carlo(dot)dormeletti(at)alice(dot)it>"
|
2014-05-13 12:45:13 +00:00
|
|
|
homepage="http://hexchat.github.io/"
|
|
|
|
license="GPL"
|
|
|
|
distfiles="http://dl.hexchat.net/hexchat/${pkgname}-${version}.tar.xz"
|
2014-09-08 13:44:53 +00:00
|
|
|
checksum=ffccee6a3470d2f9539e75bd0dd2e3f35c65737004cb02e6d2106c1d5dcde9a9
|
2014-05-13 12:45:13 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
}
|
2014-05-13 13:37:41 +00:00
|
|
|
post_install() {
|
|
|
|
# Remove useless files.
|
|
|
|
rm -rf ${DESTDIR}/usr/include
|
|
|
|
}
|
|
|
|
|
|
|
|
hexchat-perl_package() {
|
|
|
|
replaces="${sourcepkg}<2.9.6.1_2"
|
|
|
|
short_desc+=" - perl plugin"
|
|
|
|
depends="${sourcepkg}-${version}_${revision}"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/lib/hexchat/plugins/perl.so
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
hexchat-python_package() {
|
|
|
|
replaces="${sourcepkg}<2.9.6.1_2"
|
|
|
|
short_desc+=" - python plugin"
|
|
|
|
depends="${sourcepkg}-${version}_${revision}"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/lib/hexchat/plugins/python.so
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|