# Template file for 'libcotp'
pkgname=libcotp
version=3.1.0
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=a48bbfd95b7ec12d23e4e2c4a017f8acddecc14bf10541ff144563cee044b39c

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