- Remove obsolete [host]makedep 'libxml2-devel'
as hexchat does not use libxml2
- Add makedep 'python3-cffi'
- Add hostmakedep 'python3-cffi' for crossbuilds
- Update configure args for dbus and tls (upstream renamed them)
- Remove configure args for building the text interface
(now disabled by default by upstream)
- Add configure arg for libcanbera
- Remove patch for cross compile (introduced in 32a4badf
)
The file it applies to is now unrecognisable,
and the patch *seems* unneeded
- Change the maintainer from Orphan
- Remove obsolete 'update' file (project has moved to github releases)
65 lines
1.8 KiB
Bash
65 lines
1.8 KiB
Bash
# Template file for 'hexchat'
|
|
pkgname=hexchat
|
|
version=2.16.0
|
|
revision=1
|
|
build_style=meson
|
|
configure_args="-Ddbus=enabled -Dtls=enabled -Dwith-text=false
|
|
-Dwith-perl=/usr/bin/perl -Dwith-python=python3
|
|
-Dwith-lua=$(vopt_if LuaJIT luajit lua) -Dlibcanberra=enabled"
|
|
hostmakedepends="gettext pkg-config glib-devel"
|
|
makedepends="gtk+-devel openssl-devel dbus-glib-devel perl libnotify-devel
|
|
libcanberra-devel pciutils-devel libproxy-devel iso-codes
|
|
python3-devel python3-cffi $(vopt_if LuaJIT LuaJIT-devel lua53-devel)"
|
|
depends="desktop-file-utils enchant2"
|
|
short_desc="GTK+ based IRC client successor of Xchat"
|
|
maintainer="0x5c <dev@0x5c.io>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://hexchat.github.io/"
|
|
changelog="https://hexchat.readthedocs.org/en/latest/changelog.html"
|
|
distfiles="https://github.com/hexchat/hexchat/archive/v${version}.tar.gz"
|
|
checksum=5c7f35317bb3bc437fc5fb57392ddc13ba11c173718cdfe4de89d69c30a40b06
|
|
build_options="LuaJIT"
|
|
lib32disabled=yes
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
arm*-musl) : "LuaJIT is broken for musl cross arches" ;;
|
|
*) build_options_default+=" LuaJIT" ;;
|
|
esac
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
hostmakedepends+=" dbus-glib-devel python3-cffi gdk-pixbuf perl
|
|
shared-mime-info"
|
|
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
|
|
}
|
|
}
|