# Template file for 'monocypher'
pkgname=monocypher
version=4.0.0
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=99e0b2403d4313eb0a13364480961a1a4ce2434e99e9478ca2f2ac4152f0ad52

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"
	}
}
