void-packages/srcpkgs/timeshift/template

27 lines
930 B
Bash

# Template file for 'timeshift'
pkgname=timeshift
version=22.11.2
revision=1
build_style=gnu-makefile
hostmakedepends="gettext pkg-config vala which"
makedepends="libgee-devel json-glib-devel gtk+3-devel vte3-devel libgirepository-devel"
depends="rsync psmisc"
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=36fd19865d1d30dc5f6eca468ceaa3dad01cd95d9090d050d67f5c2cd98fe37d
# Remove hard-dep on crontab, leave up to user to decide
post_extract() {
vsed -i src/Core/Main.vala -e '/dependencies/s:"crontab",::'
}
# timeshift.1.gz is not a gzip file.
pre_install() {
mv man/timeshift.1.gz man/timeshift.1
gzip man/timeshift.1
}