# Template file for 'tilix'
pkgname=tilix
version=1.9.0
revision=1
build_style=gnu-configure
hostmakedepends="automake gettext-devel gdk-pixbuf glib-devel ldc po4a pkg-config
 librsvg"
makedepends="dconf-devel gtkd-devel libglib-devel libvted-devel libX11-devel"
depends="gsettings-desktop-schemas vte3"
short_desc="Tiling terminal emulator for Linux"
maintainer="Rasmus Thomsen <oss@cogitri.dev>"
license="MPL-2.0"
homepage="https://gnunn1.github.io/tilix-web/"
distfiles="https://github.com/gnunn1/${pkgname}/archive/${version}.tar.gz"
checksum=192b86776b0e8e89fe3963a4c6b54884dc1909f762758390a407c4de744ab3f0

pre_configure() {
	case "$XBPS_TARGET_MACHINE" in
		*musl)
			patch -Np0 -i ${FILESDIR}/musl-hacks.patch
			export DCFLAGS="-linker=bfd"
			;;
	esac

	autoreconf -fi
}
