summaryrefslogtreecommitdiff
path: root/user/yubikey-personalization
diff options
context:
space:
mode:
authorKiyoshi Aman <kiyoshi.aman+apkfission@gmail.com>2018-08-01 10:45:45 -0500
committerKiyoshi Aman <kiyoshi.aman+apkfission@gmail.com>2018-08-01 10:45:45 -0500
commita47f31e6b88aa7b7a208d65969764de551e22636 (patch)
tree01456006d9fa45ac2b4ad3c8ec259ba4ed7700dc /user/yubikey-personalization
parentf881531924f86061f7d6be63f0e125a3665959bc (diff)
downloadpackages-a47f31e6b88aa7b7a208d65969764de551e22636.tar.gz
packages-a47f31e6b88aa7b7a208d65969764de551e22636.tar.bz2
packages-a47f31e6b88aa7b7a208d65969764de551e22636.tar.xz
packages-a47f31e6b88aa7b7a208d65969764de551e22636.zip
user/yubikey-personalization: new package
Diffstat (limited to 'user/yubikey-personalization')
-rw-r--r--user/yubikey-personalization/APKBUILD49
-rw-r--r--user/yubikey-personalization/use-asciidoctor.patch12
-rw-r--r--user/yubikey-personalization/we-are-linux.patch21
3 files changed, 82 insertions, 0 deletions
diff --git a/user/yubikey-personalization/APKBUILD b/user/yubikey-personalization/APKBUILD
new file mode 100644
index 000000000..bcc6478e3
--- /dev/null
+++ b/user/yubikey-personalization/APKBUILD
@@ -0,0 +1,49 @@
+# Contributor: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
+# Maintainer: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
+pkgname=yubikey-personalization
+pkgver=1.19.0
+pkgrel=0
+pkgdesc="Cross-platform library & tools for personalizing YubiKey devices"
+url="https://developers.yubico.com/yubikey-personalization/"
+arch="all"
+license="BSD-2-Clause AND Public-Domain"
+depends=""
+depends_dev=""
+makedepends="yubico-c-dev libusb-dev json-c-dev $depends_dev"
+install=""
+subpackages="$pkgname-dev $pkgname-doc"
+source="yubikey-personalization-$pkgver.tar.gz::https://github.com/Yubico/yubikey-personalization/archive/v$pkgver.tar.gz
+ use-asciidoctor.patch
+ we-are-linux.patch"
+
+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="413f81325782f0d71501d3dbf5aaaf646bd5dc02d87308a7f650044dfe860dc13b7cef11afa8794df3049c729e10da33ffad86e3f148ac429ee64685bf0fe56e yubikey-personalization-1.19.0.tar.gz
+d6777a43e5e57430268bb50ab704641465a7314b15fc821d8bfa7f0c6510829d0118ced426cd5f8730589efe6264df6b82fc70e8bfe3d8b7d735e51339a25af2 use-asciidoctor.patch
+87d6280ca847da03a89aeccd966fe9da7e6feed360485e1423bbad8ebac461f25d718cf424a5ba3b91e87843263bc59b856cc5c8f04daf3872d706ab0aa695e6 we-are-linux.patch"
diff --git a/user/yubikey-personalization/use-asciidoctor.patch b/user/yubikey-personalization/use-asciidoctor.patch
new file mode 100644
index 000000000..e9e29a7be
--- /dev/null
+++ b/user/yubikey-personalization/use-asciidoctor.patch
@@ -0,0 +1,12 @@
+diff -Nurd yubikey-personalization-1.19.0/Makefile.am yubikey-personalization-1.19.0.new/Makefile.am
+--- yubikey-personalization-1.19.0/Makefile.am 2018-04-24 03:28:46.000000000 -0500
++++ yubikey-personalization-1.19.0.new/Makefile.am 2018-08-01 09:07:42.220851935 -0500
+@@ -95,7 +95,7 @@
+ MANSOURCES = ykpersonalize.1.adoc ykchalresp.1.adoc ykinfo.1.adoc
+ SUFFIXES = .1.adoc .1
+ .1.adoc.1:
+- $(A2X) -L --format=manpage -a revdate="Version $(VERSION)" --xsltproc-opts="--nonet" $<
++ $(A2X) -b manpage -a revdate="Version $(VERSION)" $<
+
+ # Dist docs
+ EXTRA_DIST = doc/Compatibility.asciidoc doc/USB-Hid-Issue.asciidoc
diff --git a/user/yubikey-personalization/we-are-linux.patch b/user/yubikey-personalization/we-are-linux.patch
new file mode 100644
index 000000000..0151c3b89
--- /dev/null
+++ b/user/yubikey-personalization/we-are-linux.patch
@@ -0,0 +1,21 @@
+diff -Nurd yubikey-personalization-1.19.0/tests/test_args_to_config.c yubikey-personalization-1.19.0.new/tests/test_args_to_config.c
+--- yubikey-personalization-1.19.0/tests/test_args_to_config.c 2018-04-24 03:28:46.000000000 -0500
++++ yubikey-personalization-1.19.0.new/tests/test_args_to_config.c 2018-08-01 09:24:48.170884044 -0500
+@@ -132,7 +132,7 @@
+ ykp_errno = 0;
+
+ /* getopt reinit (BSD systems use optreset and a different optind value) */
+-#if defined(__GLIBC__) || defined(_WIN32)
++#if !defined(__BSD__) || defined(_WIN32)
+ optind = 0;
+ #else
+ optind = optreset = 1;
+@@ -329,7 +329,7 @@
+ ykp_errno = 0;
+
+ /* getopt reinit (BSD systems use optreset and a different optind value) */
+-#if defined(__GLIBC__) || defined(_WIN32)
++#if !defined(__BSD__) || defined(_WIN32)
+ optind = 0;
+ #else
+ optind = optreset = 1;