# Template file for 'monocypher'
pkgname=monocypher
version=4.0.2
revision=1
build_style=gnu-makefile
short_desc="Easy to use crypto library inspired by libsodium and TweetNaCl"
maintainer="Duncaen <duncaen@voidlinux.org>"
license="BSD-2-Clause, CC0-1.0"
homepage="https://monocypher.org"
changelog="https://monocypher.org/changelog"
distfiles="https://monocypher.org/download/monocypher-${version}.tar.gz"
checksum=38d07179738c0c90677dba3ceb7a7b8496bcfea758ba1a53e803fed30ae0879c

post_install() {
	vlicense LICENCE.md
}

monocypher-devel_package() {
	short_desc+=" - development files"
	depends="${sourcepkg}>=${version}_${revision}"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/pkgconfig
		vmove usr/share/man/man3
		vmove "usr/lib/*.a"
		vmove "usr/lib/*.so"
	}
}
