# Template file for 'git-crypt'
pkgname=git-crypt
version=0.7.0
revision=1
build_style=gnu-makefile
make_use_env=yes
make_build_args="ENABLE_MAN=yes"
make_install_args="ENABLE_MAN=yes"
hostmakedepends="libxslt docbook-xsl"
makedepends="openssl-devel"
short_desc="Transparent file encryption in git"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="https://www.agwa.name/projects/git-crypt/"
distfiles="https://github.com/AGWA/git-crypt/archive/${version}.tar.gz"
checksum=2210a89588169ae9a54988c7fdd9717333f0c6053ff704d335631a387bd3bcff

do_build() {
	make \
		PREFIX=/usr prefix=/usr \
		CXXFLAGS="$CXXFLAGS -DOPENSSL_API_COMPAT=0x30000000L" \
		${makejobs} ${make_build_args} ${make_build_target}
}

post_install() {
	vdoc README
	vdoc AUTHORS
	vdoc NEWS
	vdoc doc/multiple_keys.md
	vman man/man1/git-crypt.1
}
