Michał Polański 88291e6e1d testing/libcotp: new aport
Library for generating TOTP and HOTP
https://github.com/paolostivanin/libcotp
2021-02-18 13:13:46 +00:00

28 lines
837 B
Plaintext

# 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"