mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-09 02:32:25 +01: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.2
|
|
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="
|
|
c630ba7787aef66cdd8bf5dad8b439165795a6c875a850b6ffc4462a1f414c4d81a7db784831f68ec7fce6c9f393fd857cb84afb0c63527a5b4be85ca14896d9 libcotp-2.0.2.tar.gz
|
|
"
|