template 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. # Template file for 'hexchat'
  2. pkgname=hexchat
  3. version=2.14.3
  4. revision=3
  5. build_style=meson
  6. configure_args="-Dwith-dbus=true -Dwith-ssl=true -Dwith-text=false
  7. -Dwith-perl=/usr/bin/perl -Dwith-python=python3
  8. -Dwith-lua=$(vopt_if LuaJIT luajit lua)"
  9. hostmakedepends="gettext pkg-config glib-devel"
  10. makedepends="gtk+-devel libressl-devel dbus-glib-devel perl libnotify-devel
  11. libcanberra-devel libxml2-devel pciutils-devel libproxy-devel
  12. iso-codes python3-devel $(vopt_if LuaJIT LuaJIT-devel lua53-devel)"
  13. depends="desktop-file-utils enchant"
  14. short_desc="GTK+ based IRC client successor of Xchat"
  15. maintainer="Orphaned <orphan@voidlinux.org>"
  16. license="GPL-2.0-or-later"
  17. homepage="https://hexchat.github.io/"
  18. changelog="https://hexchat.readthedocs.org/en/latest/changelog.html"
  19. distfiles="https://dl.hexchat.net/hexchat/${pkgname}-${version}.tar.xz"
  20. checksum=901a9d13db5a4da69b827f6093306bbd16863dc49016f7668bd3e4506512e882
  21. build_options="LuaJIT"
  22. lib32disabled=yes
  23. case "$XBPS_TARGET_MACHINE" in
  24. arm*-musl) : "LuaJIT is broken for musl cross arches" ;;
  25. *) build_options_default+=" LuaJIT" ;;
  26. esac
  27. if [ "$CROSS_BUILD" ]; then
  28. hostmakedepends+=" dbus-glib-devel libxml2-devel gdk-pixbuf perl
  29. shared-mime-info"
  30. fi
  31. # Liberation
  32. pre_build() {
  33. # Remove nonfree browser references
  34. sed -i '\|NAME Open Link| s|a new Firefox Window|Browser|' src/common/hexchat.c
  35. sed -i '\|NAME Open Link| s|firefox -new-window %s\\n\\n";|xdg-open %s\\n\\n";|' src/common/hexchat.c
  36. }
  37. post_install() {
  38. # Remove useless files.
  39. rm -rf ${DESTDIR}/usr/include
  40. rm -rf ${DESTDIR}/usr/lib/pkgconfig
  41. }
  42. hexchat-perl_package() {
  43. lib32disabled=yes
  44. short_desc+=" - perl plugin"
  45. depends="${sourcepkg}-${version}_${revision}"
  46. pkg_install() {
  47. vmove usr/lib/hexchat/plugins/perl.so
  48. }
  49. }
  50. hexchat-python3_package() {
  51. lib32disabled=yes
  52. short_desc+=" - Python3 plugin"
  53. depends="${sourcepkg}-${version}_${revision}"
  54. pkg_install() {
  55. vmove usr/lib/hexchat/plugins/python.so
  56. }
  57. }
  58. hexchat-lua_package() {
  59. lib32disabled=yes
  60. short_desc+=" - lua plugin"
  61. depends="${sourcepkg}-${version}_${revision}"
  62. pkg_install() {
  63. vmove usr/lib/hexchat/plugins/lua.so
  64. }
  65. }