aboutsummaryrefslogblamecommitdiffstats
path: root/community/yubico-c/APKBUILD
blob: 6fe6efffc8fc9cf8e81dd050b69070fceed87026 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                                                                  

                       
 



                           
         










                                         



                  





                                      
                     


                                                                                                                                                                     
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=yubico-c
pkgver=1.13
pkgrel=0
pkgdesc="YubiKey C low-level library"
url="https://developers.yubico.com/yubico-c/"
arch="all"
license="BSD-2-Clause"
subpackages="$pkgname-dev $pkgname-doc $pkgname-tools"
source="https://developers.yubico.com/$pkgname/Releases/libyubikey-$pkgver.tar.gz"
builddir="$srcdir/libyubikey-$pkgver"

prepare() {
	default_prepare

	update_config_guess
	update_config_sub
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make check
}

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

tools() {
	pkgdesc="$pkgdesc (CLI tools)"

	amove usr/bin
}

sha512sums="28f45cb9817c30a70d168ae507d3f8014051058d730eed92b31d92e96784138dea291bda4275511c5f92a6427cb4249d76c802b8abb867cec50e62fb770950f2  libyubikey-1.13.tar.gz"