# Template file for 'tilix'
pkgname=tilix
version=1.8.9
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"
short_desc="Tiling terminal emulator for Linux"
maintainer="Rasmus Thomsen <rasmus.thomsen@protonmail.com>"
license="MPL-2.0"
homepage="https://gnunn1.github.io/tilix-web/"
distfiles="https://github.com/gnunn1/${pkgname}/archive/${version}.tar.gz"
checksum=0cee8a42a0537bb235005a63030af0839eb8351e8a2ca287de153d1dcc561332

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

	autoreconf -fi
}
