Date: Monday, December 26, 2022 @ 19:15:55 Author: alerque Revision: 1368505
Initial add of age-plugin-yubikey Added: age-plugin-yubikey/ age-plugin-yubikey/repos/ age-plugin-yubikey/trunk/ age-plugin-yubikey/trunk/PKGBUILD ----------+ PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) Added: age-plugin-yubikey/trunk/PKGBUILD =================================================================== --- age-plugin-yubikey/trunk/PKGBUILD (rev 0) +++ age-plugin-yubikey/trunk/PKGBUILD 2022-12-26 19:15:55 UTC (rev 1368505) @@ -0,0 +1,38 @@ +# Maintainer: Caleb Maclennan <[email protected]> +# Contributor: Daniel Peukert <[email protected]> + +pkgname=age-plugin-yubikey +pkgver=0.3.0 +pkgrel=1 +pkgdesc='Yubikey plugin for age' +arch=(x86_64 i686 arm armv6h armv7h aarch64) +url="https://github.com/str4d/$pkgname" +license=(Apache MIT) +depends=(pcsclite) +makedepends=(cargo) +optdepends=('age: for use with age' + 'rust-rage: for use with rage') +_archive="$pkgname-$pkgver" +source=("$url/archive/v$pkgver/$_archive.tar.gz") +sha256sums=('3dfd7923dcbd7b02d0bce1135ff4ba55a7860d8986d1b3b2d113d9553f439ba9') + +prepare() { + cd "$_archive" + cargo fetch --locked --target "$CARCH-unknown-linux-gnu" +} + +build() { + cd "$_archive" + cargo build --frozen --release --all-features +} + +check() { + cd "$_archive" + cargo test --frozen --all-features +} + +package() { + cd "$_archive" + install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/$pkgname" + install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE-MIT +}
