void-packages/srcpkgs/libcotp/template

24 lines
674 B
Bash

# Template file for 'libcotp'
pkgname=libcotp
version=2.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=b111d528bbde7c1a0a392f49293b25ae33e6e78fbcbe378e0cf8bc6d59743d11
libcotp-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}