create PKGBUILD file for archlinux package (#17)
Some checks reported errors
continuous-integration/drone/push Build encountered an error

* create PKGBUILD file

* use build & install method

* add package dependencies
This commit is contained in:
Saravanan Palanisamy 2020-09-02 16:14:40 +04:00 committed by GitHub
parent 8811cff6d1
commit 2266754a95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

18
PKGBUILD Normal file
View File

@ -0,0 +1,18 @@
# Maintainer: shimunn <shimun@shimun.net>
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"
}