aboutsummaryrefslogtreecommitdiffstats
path: root/testing/libcotp/APKBUILD
blob: ffee6edfc42cd3cb978b69d7ad42c203a8e2393c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# 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"