2014-05-13 14:45:13 +02:00
|
|
|
# Template file for 'hexchat'
|
|
|
|
pkgname=hexchat
|
|
|
|
version=2.9.6.1
|
2014-07-15 17:16:34 +02:00
|
|
|
revision=3
|
2014-05-13 14:45:13 +02:00
|
|
|
lib32disabled=yes
|
|
|
|
build_style=gnu-configure
|
2014-05-13 15:37:41 +02:00
|
|
|
hostmakedepends="pkg-config gdk-pixbuf-devel"
|
2014-07-15 17:16:34 +02:00
|
|
|
makedepends="gtk+-devel libressl-devel dbus-glib-devel perl python-devel
|
2014-05-13 15:37:41 +02:00
|
|
|
libnotify-devel libcanberra-devel libxml2-devel pciutils-devel
|
|
|
|
desktop-file-utils"
|
|
|
|
depends="desktop-file-utils"
|
|
|
|
configure_args=" --enable-openssl --enable-dbus
|
|
|
|
--disable-textfe --enable-ipv6 --enable-shm --enable-spell=static"
|
2014-05-13 14:45:13 +02:00
|
|
|
short_desc="A GTK+ based IRC client successor of Xchat"
|
|
|
|
maintainer="Carlo Dormeletti <carlo.dormeletti@email.it>"
|
|
|
|
homepage="http://hexchat.github.io/"
|
|
|
|
license="GPL"
|
|
|
|
distfiles="http://dl.hexchat.net/hexchat/${pkgname}-${version}.tar.xz"
|
|
|
|
checksum=6267ff3c4d0aec8a808365b384115a769d5001d99dbb10403634667c43966470
|
|
|
|
|
|
|
|
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 15:37:41 +02: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
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|