summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 31affe328f3cb11e01ffbd5d937dc554bc21a548 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Maintainer: Karol Babioch <karol@babioch.de

pkgname=libfido2
pkgver=1.1.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=lib
    make
}

package() {
    cd "$srcdir/$pkgname/build"
    make DESTDIR="$pkgdir/" install
    install -Dm644 ../LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}