summaryrefslogtreecommitdiff
path: root/hexchat/Pkgfile
blob: 58a72070ff32f0e984329c33afac99b6a0926034 (plain)
    1 # Description: GTK+ based IRC client.
    2 # URL: https://hexchat.github.io/
    3 # Maintainer: Danny Rawlins, crux at romster dot me
    4 # Depends on: gtk iso-codes python3-cffi xorg-libxdamage
    5 # Optional: dbus-glib desktop-file-utils enchant libcanberra libnotify libproxy lua pciutils
    6 
    7 name=hexchat
    8 version=2.14.3
    9 release=2
   10 source=(https://dl.hexchat.net/hexchat/$name-$version.tar.xz
   11 	0001-python-cffi.patch
   12 	0002-python-3-8.patch
   13 	0003-Use-pango_font_metrics_get_height-to-calculate-font-height.patch
   14 	0004-fix_segfault_on_lua_pop_with_Lua_5.4.3.patch)
   15 
   16 build() {
   17 	cd $name-$version
   18 
   19 	patch -p1 -i $SRC/0001-python-cffi.patch
   20 	patch -p1 -i $SRC/0002-python-3-8.patch
   21 	patch -p1 -i $SRC/0003-Use-pango_font_metrics_get_height-to-calculate-font-height.patch
   22 	patch -p1 -i $SRC/0004-fix_segfault_on_lua_pop_with_Lua_5.4.3.patch
   23 
   24 	# Lua scripting plugin, value is pkg-config name
   25 	prt-get isinst lua && PKGMK_HEXCHAT+=' -Dwith-lua=lua' || PKGMK_HEXCHAT+=' -Dwith-lua=false'
   26 
   27 	# Support for getting proxy information
   28 	prt-get isinst libproxy || PKGMK_HEXCHAT+=' -Dwith-libproxy=false'
   29 
   30 	# Support for freedesktop notifications
   31 	prt-get isinst libnotify || PKGMK_HEXCHAT+=' -Dwith-libnotify=false'
   32 
   33 	# Support for sound alerts
   34 	prt-get isinst libcanberra || PKGMK_HEXCHAT+=' -Dwith-libcanberra=false'
   35 
   36 	# Support used for single-instance and scripting interface
   37         prt-get isinst dbus-glib || PKGMK_HEXCHAT+=' -Dwith-dbus=false'
   38 
   39 	prt-get isinst pciutils && PKGMK_HEXCHAT+=' -Dwith-sysinfo=true'
   40 
   41 	meson build ${PKGMK_HEXCHAT} \
   42 		--prefix /usr \
   43 		-Dwith-text=true
   44 
   45         ninja -C build -j ${JOBS:-1}
   46         DESTDIR="$PKG" ninja -C build install
   47 
   48 	rm -r $PKG/usr/share/locale
   49 }

Generated by cgit