mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-13 16:46:27 +02:00
30 lines
838 B
Plaintext
30 lines
838 B
Plaintext
# Contributor: Michał Polański <michal@polanski.me>
|
|
# Maintainer: Michał Polański <michal@polanski.me>
|
|
pkgname=libcotp
|
|
pkgver=2.0.1
|
|
pkgrel=0
|
|
pkgdesc="Library for generating TOTP and HOTP"
|
|
url="https://github.com/paolostivanin/libcotp"
|
|
license="Apache-2.0"
|
|
arch="all"
|
|
makedepends="cmake libgcrypt-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
|
|
cmake --build build
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" cmake --install build
|
|
}
|
|
|
|
sha512sums="
|
|
7ff5a530011c7458ed6268523bd8dc665bb3d8cac3fd666964212b0fd0884c00b74a9b11026a0a2a9f3d1d3876a919e113a174a0db8013c2101434c96c53a76d libcotp-2.0.1.tar.gz
|
|
"
|