From c056f6ccb558fd1ba3c1ecaa0c83218026a77045 Mon Sep 17 00:00:00 2001 From: xhaa123 Date: Wed, 30 Oct 2024 13:41:10 +0800 Subject: [PATCH] libfido2 1.15.0-1 --- PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 PKGBUILD diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..bba7de0 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,41 @@ +# This is an example PKGBUILD file. Use this as a start to creating your own, +# and remove these comments. For more information, see 'man PKGBUILD'. +# NOTE: Please fill out the license field for your package! If it is unknown, +# then please put 'unknown'. + +# Maintainer: Future Linux Team +pkgname=libfido2 +pkgver=1.15.0 +pkgrel=1 +pkgdesc="Library functionality for FIDO 2.0, including communication with a device over USB" +arch=('x86_64') +url="https://developers.yubico.com/libfido2" +license=('BSD-2-Clause') +depends=('glibc' 'openssl' 'libcbor' 'hidapi' 'systemd' 'zlib') +makedepends=('cmake') +source=(https://developers.yubico.com/libfido2/Releases/${pkgname}-${pkgver}.tar.gz) +sha256sums=(abaab1318d21d262ece416fb8a7132fa9374bda89f6fa52b86a98a2f5712b61e) + +prepare() { + cd ${pkgname}-${pkgver} + + sed -i 's,-Werror,& -Wno-error=conversion,' CMakeLists.txt +} + +build() { + cd ${pkgname}-${pkgver} + + cmake -Bbuild \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib64 \ + -DCMAKE_BUILD_TYPE=none \ + -Wno-dev + + make -C build VERBOSE=1 +} + +package() { + cd ${pkgname}-${pkgver} + + make -C build DESTDIR=${pkgdir} install +}