2025-10-04 00:24:23 +02:00

30 lines
808 B
Plaintext

maintainer="Michał Polański <michal@polanski.me>"
pkgname=libcotp
pkgver=3.1.1
pkgrel=0
pkgdesc="Library for generating TOTP and HOTP"
url="https://github.com/paolostivanin/libcotp"
license="Apache-2.0"
arch="all"
makedepends="cmake openssl-dev samurai"
subpackages="$pkgname-dev"
source="https://github.com/paolostivanin/libcotp/archive/v$pkgver/libcotp-$pkgver.tar.gz"
options="!check" # needs criterion
build() {
cmake -B build -G Ninja \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DHMAC_WRAPPER=openssl
cmake --build build
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
sha512sums="
ba245f0b4cbe40112cbb3902968101656e4df6b2d1866172fbda80778279bbb05788d07da9bfd07a3174b4a14a1b4cd31822eed1b7e1c24d6d058fc92d22e6de libcotp-3.1.1.tar.gz
"