void-packages/srcpkgs/hexchat/template
Alessio Sergi 3905eeacdb hexchat: hexchat-python -> hexchat-python3
Another untracked switch to Python 3.
2018-09-01 02:01:04 +02:00

60 lines
1.6 KiB
Bash

# Template file for 'hexchat'
pkgname=hexchat
version=2.14.2
revision=2
build_style=meson
configure_args="-Dwith-dbus=true -Dwith-ssl=true -Dwith-text=false
-Dwith-perl=/usr/bin/perl -Dwith-python=python3"
hostmakedepends="pkg-config glib-devel"
makedepends="gtk+-devel libressl-devel dbus-glib-devel perl libnotify-devel
libcanberra-devel libxml2-devel pciutils-devel libproxy-devel LuaJIT-devel
iso-codes python3-devel"
depends="desktop-file-utils enchant"
short_desc="A GTK+ based IRC client successor of Xchat"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2.0-or-later"
homepage="https://hexchat.github.io/"
changelog="https://hexchat.readthedocs.org/en/latest/changelog.html"
distfiles="https://dl.hexchat.net/hexchat/${pkgname}-${version}.tar.xz"
checksum=7792b9e52560fbd3e10d75bfb5d138a20913a87771d676d296547f1b4ac09618
lib32disabled=yes
if [ "$CROSS_BUILD" ]; then
# dbus-binding-tools
# xmllint
# gdk-pixbuf-pixdata
hostmakedepends+=" dbus-glib-devel libxml2-devel gdk-pixbuf"
fi
post_install() {
# Remove useless files.
rm -rf ${DESTDIR}/usr/include
rm -rf ${DESTDIR}/usr/lib/pkgconfig
}
hexchat-perl_package() {
lib32disabled=yes
short_desc+=" - perl plugin"
depends="${sourcepkg}-${version}_${revision}"
pkg_install() {
vmove usr/lib/hexchat/plugins/perl.so
}
}
hexchat-python3_package() {
lib32disabled=yes
short_desc+=" - Python3 plugin"
depends="${sourcepkg}-${version}_${revision}"
pkg_install() {
vmove usr/lib/hexchat/plugins/python.so
}
}
hexchat-lua_package() {
lib32disabled=yes
short_desc+=" - lua plugin"
depends="${sourcepkg}-${version}_${revision}"
pkg_install() {
vmove usr/lib/hexchat/plugins/lua.so
}
}