diff options
author | Karol Babioch | 2018-09-27 20:27:24 +0200 |
---|---|---|
committer | Karol Babioch | 2018-09-27 20:27:24 +0200 |
commit | aa7787d7b70e526019822e46b5efe38e97a07c6e (patch) | |
tree | 4775d6cc9b3a92c3b731cdf6d7e758109dfe775b | |
download | aur-aa7787d7b70e526019822e46b5efe38e97a07c6e.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 32 |
3 files changed, 53 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..e467c2fec3de --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = libfido2 + pkgdesc = Provides library functionality for FIDO 2.0, including communication with a device over USB + pkgver = 0.3.0 + pkgrel = 1 + url = https://developers.yubico.com/libfido2/ + arch = x86_64 + license = BSD + makedepends = git + makedepends = cmake + depends = openssl + depends = libcbor + depends = hidapi + source = git+https://github.com/Yubico/libfido2.git#tag=0.3.0 + sha256sums = SKIP + +pkgname = libfido2 + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..457a6674bf3d --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/libfido2/ +/*.tar.xz +/pkg/ +/src/ diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..dada5a34c2cf --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: Karol Babioch <karol@babioch.de + +pkgname=libfido2 +pkgver=0.3.0 +pkgrel=1 +pkgdesc="Provides library functionality for FIDO 2.0, including communication with a device over USB" +arch=('x86_64') +url="https://developers.yubico.com/libfido2/" +license=('BSD') +depends=('openssl' 'libcbor' 'hidapi') +makedepends=('git' 'cmake') +source=("git+https://github.com/Yubico/libfido2.git#tag=$pkgver") +sha256sums=('SKIP') + +prepare() { + cd "$srcdir/$pkgname" + mkdir build +} + +build() { + cd "$srcdir/$pkgname/build" + cmake .. \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=/usr/lib + make +} + +package() { + cd "$srcdir/$pkgname/build" + make DESTDIR="$pkgdir/" install + install -Dm644 ../LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} |