# Description: GTK+ based IRC client # URL: https://hexchat.github.io/ # Maintainer: Petar Petrov, slackalaxy at gmail dot com # Depends on: dbus-glib gtk libcanberra tdb xorg-libxdamage # Optional: desktop-file-utils enchant libnotify libproxy lua pciutils name=hexchat version=2.16.2 release=2 source=(https://github.com/hexchat/hexchat/releases/download/v${version}/hexchat-$version.tar.xz Add-channel-context-menu-item-to-close-the-channel.patch Automatically-reconnect-when-there-is-a-TLS-error.patch Do-not-insert-an-extra-space-on-all-lines-when-loading-scrollback-with-colours.patch) build() { # Thanks Debian cd $name-$version patch -p1 -i $SRC/Add-channel-context-menu-item-to-close-the-channel.patch patch -p1 -i $SRC/Do-not-insert-an-extra-space-on-all-lines-when-loading-scrollback-with-colours.patch patch -p1 -i $SRC/Automatically-reconnect-when-there-is-a-TLS-error.patch cd .. prt-get isinst lua && PKGMK_HEXCHAT+=' -D with-lua=lua' || PKGMK_HEXCHAT+=' -D with-lua=false' prt-get isinst libcanberra || PKGMK_HEXCHAT+=' -D libcanberra=disabled' prt-get isinst dbus-glib || PKGMK_HEXCHAT+=' -D dbus=disabled' prt-get isinst pciutils && PKGMK_HEXCHAT+=' -Dwith-sysinfo=true' meson setup build $name-$version $PKGMK_HEXCHAT \ --prefix=/usr \ --buildtype=plain \ --wrap-mode nodownload \ -D b_lto=true \ -D b_pie=true meson compile -C build -j ${JOBS:-1} DESTDIR=$PKG meson install -C build rm -r $PKG/usr/share/locale }