aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2018-03-02 16:47:13 +0100
committerJakub Jirutka <jakub@jirutka.cz>2018-03-02 16:47:54 +0100
commit0a8794909b881b2f7ccbcf7bef2c49526317c6eb (patch)
tree39bffab43575628d5470f19e72a804d35d27073b
parentd1c525417e51fd7f3c9b940e6f15bedbf9a3ad85 (diff)
downloadaports-0a8794909b881b2f7ccbcf7bef2c49526317c6eb.tar.gz
aports-0a8794909b881b2f7ccbcf7bef2c49526317c6eb.tar.bz2
aports-0a8794909b881b2f7ccbcf7bef2c49526317c6eb.tar.xz
testing/yubico-c: new aport
https://developers.yubico.com/yubico-c/ YubiKey C low-level library
-rw-r--r--testing/yubico-c/APKBUILD43
1 files changed, 43 insertions, 0 deletions
diff --git a/testing/yubico-c/APKBUILD b/testing/yubico-c/APKBUILD
new file mode 100644
index 0000000000..a3e7af4fac
--- /dev/null
+++ b/testing/yubico-c/APKBUILD
@@ -0,0 +1,43 @@
+# 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"
+
+build() {
+ cd "$builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --localstatedir=/var
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+tools() {
+ pkgdesc="$pkgdesc (CLI tools)"
+
+ mkdir -p "$subpkgdir"/usr/
+ mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
+}
+
+sha512sums="28f45cb9817c30a70d168ae507d3f8014051058d730eed92b31d92e96784138dea291bda4275511c5f92a6427cb4249d76c802b8abb867cec50e62fb770950f2 libyubikey-1.13.tar.gz"