mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-18 15:12:02 +01:00
28 lines
818 B
Plaintext
28 lines
818 B
Plaintext
# Contributor: Leo <thinkabit.ukim@gmail.com>
|
|
# Maintainer: Leo <thinkabit.ukim@gmail.com>
|
|
pkgname=libcotp
|
|
pkgver=1.2.2
|
|
pkgrel=0
|
|
pkgdesc="Library for generating TOTP and HOTP"
|
|
options="!check" # Requires unpackaged 'criterion'
|
|
url="https://github.com/paolostivanin/libcotp"
|
|
arch="all"
|
|
license="Apache-2.0"
|
|
makedepends="libbaseencode-dev libgcrypt-dev cmake"
|
|
subpackages="$pkgname-dev"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/paolostivanin/libcotp/archive/v${pkgver}.tar.gz"
|
|
|
|
build() {
|
|
cmake \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_INSTALL_LIBDIR=lib \
|
|
-DCMAKE_BUILD_TYPE=Release
|
|
make
|
|
}
|
|
|
|
package() {
|
|
make DESTDIR="$pkgdir" install
|
|
}
|
|
|
|
sha512sums="eb52259ccd273b9176939b2670e31ab5289f2b5a708b5c4206e23d3a368839fee79235b7cec6745db0b33ac41159459c897a4719f539e5850efacfd04d3c9ed1 libcotp-1.2.2.tar.gz"
|