# Template file for 'testssl.sh'
pkgname=testssl.sh
version=3.0rc5
revision=1
archs=noarch
depends="libressl"
short_desc="Command line tool which checks a server for the support of TLS/SSL"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-2.0-only"
homepage="https://testssl.sh"
distfiles="https://github.com/drwetter/testssl.sh/archive/${version}.tar.gz"
checksum=6118f08b88c0075f39820296f0d76889165dd67e64dbfdfd1104d6d122a938c9

pre_install() {
	# Set TESTSSL_INSTALL_DIR so that we can install to a custom dir
	sed 's|LL_DIR:-""|LL_DIR:-/usr/share/testssl.sh/|' -i testssl.sh
}

do_install() {
	vbin testssl.sh
	vmkdir /usr/share/testssl.sh
	vcopy etc/ /usr/share/testssl.sh/
	vdoc Readme.md
	vman doc/testssl.1
}
