mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-24 18:11:44 +01:00
28 lines
837 B
Plaintext
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"
|