# Template file for 'Thunar'
pkgname=Thunar
reverts="4.17.0_1"
version=4.16.10
revision=1
wrksrc=thunar-${version}
build_style=gnu-configure
build_helper="gir"
configure_args="--enable-gio-unix --enable-gudev
 --enable-exif --enable-pcre --disable-static --enable-notifications
 --with-locales-dir=/usr/share/locale"
hostmakedepends="pkg-config intltool glib-devel"
makedepends="exo-devel libexif-devel libgudev-devel libnotify-devel xfce4-panel-devel"
depends="desktop-file-utils hicolor-icon-theme"
short_desc="Thunar File Manager"
maintainer="Ulf <void@uw.anonaddy.com>"
license="GPL-2.0-or-later, LGPL-2.1-or-later"
homepage="https://docs.xfce.org/xfce/thunar/Start"
changelog="https://raw.githubusercontent.com/xfce-mirror/thunar/master/NEWS"
distfiles="https://archive.xfce.org/src/xfce/thunar/${version%.*}/thunar-${version}.tar.bz2"
checksum=f105c8f5abc50c411f6218f913561ae3a485826bd0cd09503a4772d015899c92

post_install() {
	rm -rf ${DESTDIR}/usr/lib/systemd
}

Thunar-devel_package() {
	depends="libglib-devel gtk+3-devel ${sourcepkg}>=${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/pkgconfig
		vmove "usr/lib/*.so"
		vmove usr/share/gir-1.0
		vmove usr/share/gtk-doc
	}
}
