# Template file for 'libcotp'
pkgname=libcotp
version=4.0.1
revision=1
build_style=cmake
hostmakedepends="pkg-config"
makedepends="libgcrypt-devel"
short_desc="Library for generating TOTP and HOTP"
maintainer="Emil Miler <em@0x45.cz>"
license="Apache-2.0"
homepage="https://github.com/paolostivanin/libcotp"
distfiles="https://github.com/paolostivanin/libcotp/archive/refs/tags/v${version}.tar.gz"
checksum=f8c843004d18880eb41417853fcfc3855f6197e7a32dcd87d23a6609cf0a116a

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