mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-12-25 03:12:08 +01:00
30 lines
808 B
Plaintext
30 lines
808 B
Plaintext
maintainer="Michał Polański <michal@polanski.me>"
|
|
pkgname=libcotp
|
|
pkgver=3.1.1
|
|
pkgrel=0
|
|
pkgdesc="Library for generating TOTP and HOTP"
|
|
url="https://github.com/paolostivanin/libcotp"
|
|
license="Apache-2.0"
|
|
arch="all"
|
|
makedepends="cmake openssl-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 \
|
|
-DHMAC_WRAPPER=openssl
|
|
cmake --build build
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" cmake --install build
|
|
}
|
|
|
|
sha512sums="
|
|
ba245f0b4cbe40112cbb3902968101656e4df6b2d1866172fbda80778279bbb05788d07da9bfd07a3174b4a14a1b4cd31822eed1b7e1c24d6d058fc92d22e6de libcotp-3.1.1.tar.gz
|
|
"
|