# Tanım: HexChat bir IRC sohbet programıdır.
# URL: https://dl.hexchat.net/hexchat	
# Paketçi: milisarge
# Gerekler: python3 lua libproxy glib tdb gtk2 dbus libnotify libcanberra pciutils desktop-file-utils pango meson
# Grup: ağ

isim=hexchat
surum=2.14.2
devir=1
kaynak=(https://github.com/hexchat/hexchat/archive/v$surum.tar.gz::$isim-$surum.tar.gz)
 
derle() {
	cd $isim-$surum
	milis-meson . build \
	-Dwith-lua='lua' \
	-Dwith-text='true'
	#tamir_masaustu
	ninja -C build
	DESTDIR="${PKG}" ninja -C build install
	
	sed -i  's/Name=//' ${PKG}/usr/share/applications/io.github.Hexchat.desktop
	sed -i  's/GenericName=//' ${PKG}/usr/share/applications/io.github.Hexchat.desktop
	sed -i  's/Comment=//' ${PKG}/usr/share/applications/io.github.Hexchat.desktop
	sed -i  's/Keywords=//' ${PKG}/usr/share/applications/io.github.Hexchat.desktop
	sed -i "/\[Desktop Entry\]/aName\=HexChat\nGenericName\=IRC Client\nComment\=Chat with other people online\nKeywords\=IM;Chat;" \
	${PKG}/usr/share/applications/io.github.Hexchat.desktop
}
