Date: Monday, December 26, 2022 @ 19:16:20
  Author: alerque
Revision: 1368506

archrelease: copy trunk to community-x86_64

Added:
  age-plugin-yubikey/repos/community-x86_64/
  age-plugin-yubikey/repos/community-x86_64/PKGBUILD
    (from rev 1368505, age-plugin-yubikey/trunk/PKGBUILD)

----------+
 PKGBUILD |   38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

Copied: age-plugin-yubikey/repos/community-x86_64/PKGBUILD (from rev 1368505, 
age-plugin-yubikey/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD                           (rev 0)
+++ community-x86_64/PKGBUILD   2022-12-26 19:16:20 UTC (rev 1368506)
@@ -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
+}

Reply via email to