Commit 88291e6e authored by Michał Polański's avatar Michał Polański Committed by Leo

testing/libcotp: new aport

Library for generating TOTP and HOTP
https://github.com/paolostivanin/libcotp
parent 85f385ea
# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=libcotp
pkgver=1.2.3
pkgrel=0
pkgdesc="Library for generating TOTP and HOTP"
url="https://github.com/paolostivanin/libcotp"
license="Apache-2.0"
arch="all"
options="!check" # needs criterion
makedepends="cmake libgcrypt-dev libbaseencode-dev"
subpackages="$pkgname-dev"
source="https://github.com/paolostivanin/libcotp/archive/v$pkgver/libcotp-$pkgver.tar.gz"
build() {
cmake -B build \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib
cmake --build build
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
sha512sums="a7c78bf04955f0be6bb5abb2a2616306f1a3b3f02b5e396833ffff3d1bac65e683512b77acc2b45f8eb0f5d16c2088040911e3f1ee18a6cb3c1604b3970cefe4 libcotp-1.2.3.tar.gz"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment