2013-12-01 20:59:54 +11:00
|
|
|
# Description: GTK+ based IRC client.
|
2020-06-21 20:21:42 +10:00
|
|
|
# URL: https://hexchat.github.io/
|
2014-11-10 23:25:50 +11:00
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
2019-04-07 21:18:27 +10:00
|
|
|
# Depends on: gtk iso-codes xorg-libxdamage
|
|
|
|
# Optional: dbus-glib desktop-file-utils enchant libcanberra libnotify libproxy lua pciutils
|
2013-12-01 20:59:54 +11:00
|
|
|
|
|
|
|
name=hexchat
|
2019-12-24 00:09:29 +11:00
|
|
|
version=2.14.3
|
2019-04-07 21:18:27 +10:00
|
|
|
release=1
|
2019-12-24 00:09:29 +11:00
|
|
|
source=(https://dl.hexchat.net/hexchat/$name-$version.tar.xz)
|
2013-12-01 20:59:54 +11:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $name-$version
|
|
|
|
|
2019-04-07 21:18:27 +10:00
|
|
|
# Lua scripting plugin, value is pkg-config name
|
|
|
|
prt-get isinst lua && PKGMK_HEXCHAT+=' -Dwith-lua=lua' || PKGMK_HEXCHAT+=' -Dwith-lua=false'
|
2018-02-01 19:15:43 +11:00
|
|
|
|
2019-04-07 21:18:27 +10:00
|
|
|
# Support for getting proxy information
|
|
|
|
prt-get isinst libproxy || PKGMK_HEXCHAT+=' -Dwith-libproxy=false'
|
2016-09-25 11:55:02 +10:00
|
|
|
|
2019-04-07 21:18:27 +10:00
|
|
|
# Support for freedesktop notifications
|
|
|
|
prt-get isinst libnotify || PKGMK_HEXCHAT+=' -Dwith-libnotify=false'
|
2018-04-06 20:23:16 +10:00
|
|
|
|
2019-04-07 21:18:27 +10:00
|
|
|
# Support for sound alerts
|
|
|
|
prt-get isinst libcanberra || PKGMK_HEXCHAT+=' -Dwith-libcanberra=false'
|
2013-12-01 20:59:54 +11:00
|
|
|
|
2019-04-07 21:18:27 +10:00
|
|
|
# Support used for single-instance and scripting interface
|
|
|
|
prt-get isinst dbus-glib || PKGMK_HEXCHAT+=' -Dwith-dbus=false'
|
|
|
|
|
|
|
|
prt-get isinst pciutils && PKGMK_HEXCHAT+=' -Dwith-sysinfo=true'
|
|
|
|
|
|
|
|
meson build ${PKGMK_HEXCHAT} \
|
|
|
|
--prefix /usr \
|
|
|
|
-Dwith-text=true
|
|
|
|
|
|
|
|
ninja -C build -j ${JOBS:-1}
|
|
|
|
DESTDIR="$PKG" ninja -C build install
|
2013-12-01 20:59:54 +11:00
|
|
|
|
|
|
|
rm -r $PKG/usr/share/locale
|
|
|
|
}
|