# Template file for 'etckeeper'
pkgname=etckeeper
version=1.18.8
revision=1
noarch=yes
depends="git perl"
build_style='gnu-makefile'
hostmakedepends="python bzrtools"
short_desc="Tools to store /etc in a git, mercurial, bazaar or darcs repository"
maintainer="Diogo Leal <diogo@diogoleal.com>"
license="GPL-2.0-or-later"
homepage="https://etckeeper.branchable.com"
distfiles="https://git.joeyh.name/index.cgi/etckeeper.git/snapshot/${pkgname}-${version}.tar.gz"
checksum=97ba6908399a877b749e9137b9b71ada6db1373695da1bd646c5825e7c17d08e
conf_files="/etc/etckeeper/etckeeper.conf"

pre_install() {
	sed -ni '/systemddir/!p' Makefile
	sed -ni '/apt.conf/!p' Makefile
}
