<?xml version="1.0"?>
<package name="zoitechat">
	<description>IRC client based on HexChat</description>
	<releases>
		<release version="2.19.1" revision="1">
			<deps>
				<dep name="gettext"/>
				<dep name="glib-2.0"/>
				<dep name="gtk+-3.0"/>
				<dep name="iso-codes"/>
				<dep name="libcanberra"/>
				<dep name="libnotify"/>
				<dep name="libsecret-1"/>
				<dep name="meson"/>
				<dep name="openssl"/>
				<dep name="pciutils"/>
				<dep name="perl"/>
			</deps>
			<build>
				<script>
					<archive name="zoitechat-$VERSION">
						<!-- fix keybindings, https://github.com/ZoiteChat/zoitechat/pull/425 -->
						<patch name="zoitechat-$VERSION-keybindings-1"/>

						<!-- fix data loss: selecting text must not overwrite clipboard
						     https://bugzilla.redhat.com/show_bug.cgi?id=291831 -->
						<cmd>sed -i -e '/text_autocopy_text = /d' src/common/cfgfiles.c</cmd>

						<!-- use bash style tab completion, drop unusable upstream default -->
						<cmd>sed -i -e '/completion_amount = /d' src/common/cfgfiles.c</cmd>

						<!-- https://publicsuffix.org/list/public_suffix_list.dat -->
						<install name="public_suffix_list.dat-20261007" dest="./src/common/public_suffix_list.dat"/>

						<cmd>meson --prefix /usr --libexecdir lib --sysconfdir /etc --localstatedir /var --sharedstatedir /var -Dwith-lua=false -Dwith-python=false -Dappindicator=disabled build</cmd>
						<cmd>cd build</cmd>
						<cmd>ninja</cmd>
						<cmd>ninja install</cmd>
					</archive>
				</script>
			</build>
		</release>
	</releases>
</package>
