diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..9796d7b --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,18 @@ +# Maintainer: shimunn +pkgname=fido2luks +pkgver=0.2.12 +pkgrel=1 +makedepends=('rust' 'cargo' 'cryptsetup' 'clang') +depends=('cryptsetup') +arch=('i686' 'x86_64' 'armv6h' 'armv7h') +pkgdesc="Decrypt your LUKS partition using a FIDO2 compatible authenticator" +url="https://github.com/shimunn/fido2luks" +license=('MPL-2.0') + +build() { + cargo build --release --locked --all-features --target-dir=target +} + +package() { + install -Dm 755 target/release/${pkgname} -t "${pkgdir}/usr/bin" +}