summaryrefslogtreecommitdiff
path: root/user/yubico-c/APKBUILD
blob: 8e9fd4deda9847fae3749e9f343adf15cde75040 (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Contributor: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
# Maintainer: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
pkgname=yubico-c
pkgver=1.13
pkgrel=1
pkgdesc="Low-level C library for interacting with YubiKey devices"
url="https://developers.yubico.com/yubico-c/"
arch="all"
license="BSD-2-Clause"
depends="ccid"
makedepends="asciidoctor $depends_dev"
subpackages="$pkgname-dev $pkgname-doc"
source="yubico-c-libyubikey-$pkgver.tar.gz::https://github.com/Yubico/yubico-c/archive/libyubikey-$pkgver.tar.gz
	use-asciidoctor.patch"
builddir="$srcdir/$pkgname-libyubikey-$pkgver"

prepare() {
	cd "$builddir"
	default_prepare
	autoreconf -vif
}
build() {
	cd "$builddir"
	./configure \
                --build=$CBUILD \
                --host=$CHOST \
                --prefix=/usr \
                --sysconfdir=/etc \
                --mandir=/usr/share/man \
                --localstatedir=/var
	make A2X=asciidoctor
}

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir/" install
}

sha512sums="5f172263d67f262003caf5ac3135a05e45a8e443ffe4662855cb427620babe8dda954c93fc57cff1fd711f92660e223acd4e928c0902c949c6523f28e9553d19  yubico-c-libyubikey-1.13.tar.gz
5786fb422e99acee097521d2f5ac63de844ec268001ff20827fcfa4827117f3a10c2793efb5fbc201ece040676bd8d226e741b8a9f01d0e89c4d165c157f2b4a  use-asciidoctor.patch"