# Template file for 'timeshift'
pkgname=timeshift
version=25.12.4
revision=1
build_style=meson
hostmakedepends="gettext pkg-config vala"
makedepends="libgee-devel json-glib-devel vte3-devel libgirepository-devel
 xapps-devel libxkbfile-devel"
depends="rsync psmisc xhost"
short_desc="System restore tool"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-3.0-only"
homepage="https://github.com/linuxmint/timeshift"
changelog="https://raw.githubusercontent.com/linuxmint/timeshift/master/debian/changelog"
distfiles="https://github.com/linuxmint/timeshift/archive/${version}/timeshift-${version}.tar.gz"
checksum=7babff88c97da80ca0f6b1384d894a74a52474855ef3e854788b0dd6ad7b4504
CFLAGS=-D_GNU_SOURCE=1

if [ "$CROSS_BUILD" ]; then
	configure_args="-Dman=false"
else
	hostmakedepends+=" help2man"
fi

# Remove hard-dep on crontab, leave up to user to decide
post_extract() {
	vsed -i src/Core/Main.vala -e '/dependencies/s:"crontab",::'
}
