mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-24 09:11:34 +01:00
30 lines
839 B
Plaintext
30 lines
839 B
Plaintext
# Contributor: Michał Polański <michal@polanski.me>
|
|
# Maintainer: Michał Polański <michal@polanski.me>
|
|
pkgname=libcotp
|
|
pkgver=1.2.4
|
|
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 libbaseencode-dev"
|
|
subpackages="$pkgname-dev"
|
|
source="https://github.com/paolostivanin/libcotp/archive/v$pkgver/libcotp-$pkgver.tar.gz"
|
|
options="!check" # needs criterion
|
|
|
|
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="
|
|
667e8a31e48c120f5c617c4b47c9a0780e733a08f7cdfc299e7ada7c1be61bb524b00ad5b1ea381d24f187370aa04d0b7d55b9b7228c12c88be209967da82d3f libcotp-1.2.4.tar.gz
|
|
"
|