opt/hexchat/Pkgfile

50 lines
1.6 KiB
Plaintext
Raw Normal View History

2013-12-01 10:59:54 +01:00
# Description: GTK+ based IRC client.
# URL: https://hexchat.github.io/
2014-11-10 13:25:50 +01:00
# Maintainer: Danny Rawlins, crux at romster dot me
# Depends on: gtk iso-codes python3-cffi xorg-libxdamage
# Optional: dbus-glib desktop-file-utils enchant libcanberra libnotify libproxy lua pciutils
2013-12-01 10:59:54 +01:00
name=hexchat
2019-12-23 14:09:29 +01:00
version=2.14.3
release=2
source=(https://dl.hexchat.net/hexchat/$name-$version.tar.xz
0001-python-cffi.patch
0002-python-3-8.patch
0003-Use-pango_font_metrics_get_height-to-calculate-font-height.patch
0004-fix_segfault_on_lua_pop_with_Lua_5.4.3.patch)
2013-12-01 10:59:54 +01:00
build() {
cd $name-$version
patch -p1 -i $SRC/0001-python-cffi.patch
patch -p1 -i $SRC/0002-python-3-8.patch
patch -p1 -i $SRC/0003-Use-pango_font_metrics_get_height-to-calculate-font-height.patch
patch -p1 -i $SRC/0004-fix_segfault_on_lua_pop_with_Lua_5.4.3.patch
# 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 09:15:43 +01:00
# Support for getting proxy information
prt-get isinst libproxy || PKGMK_HEXCHAT+=' -Dwith-libproxy=false'
2016-09-25 03:55:02 +02:00
# Support for freedesktop notifications
prt-get isinst libnotify || PKGMK_HEXCHAT+=' -Dwith-libnotify=false'
2018-04-06 12:23:16 +02:00
# Support for sound alerts
prt-get isinst libcanberra || PKGMK_HEXCHAT+=' -Dwith-libcanberra=false'
2013-12-01 10:59:54 +01: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 10:59:54 +01:00
rm -r $PKG/usr/share/locale
}