void-packages/srcpkgs/hexchat/template
2014-10-27 18:05:31 +01:00

49 lines
1.4 KiB
Text

# Template file for 'hexchat'
pkgname=hexchat
version=2.10.1
revision=3
lib32disabled=yes
build_style=gnu-configure
hostmakedepends="pkg-config gdk-pixbuf-devel intltool"
makedepends="gtk+-devel libressl-devel dbus-glib-devel perl python-devel
libnotify-devel libcanberra-devel libxml2-devel pciutils-devel iso-codes"
depends="desktop-file-utils enchant"
configure_args=" --enable-openssl --enable-dbus --disable-textfe --enable-ipv6"
short_desc="A GTK+ based IRC client successor of Xchat"
maintainer="Carlo Dormeletti <carloDOTdormelettiATaliceDOTit>"
homepage="http://hexchat.github.io/"
license="GPL"
distfiles="http://dl.hexchat.net/hexchat/${pkgname}-${version}.tar.xz"
checksum=ffccee6a3470d2f9539e75bd0dd2e3f35c65737004cb02e6d2106c1d5dcde9a9
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
}
post_install() {
# Remove useless files.
rm -rf ${DESTDIR}/usr/include
rm -rf ${DESTDIR}/usr/lib/pkgconfig
}
hexchat-perl_package() {
short_desc+=" - perl plugin"
depends="${sourcepkg}-${version}_${revision}"
pkg_install() {
vmove usr/lib/hexchat/plugins/perl.so
}
}
hexchat-python_package() {
short_desc+=" - python plugin"
depends="${sourcepkg}-${version}_${revision}"
pkg_install() {
vmove usr/lib/hexchat/plugins/python.so
}
}