# Template file for 'monocypher'
pkgname=monocypher
version=4.0.3
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 OR CC0-1.0"
homepage="https://monocypher.org"
changelog="https://raw.githubusercontent.com/LoupVaillant/Monocypher/refs/heads/master/CHANGELOG.md"
distfiles="https://monocypher.org/download/monocypher-${version}.tar.gz"
checksum=8cc9bc341a66249016db9bd70e9142d8d0aef9945973744b1ac05dbc55d8ee66

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