[arch-commits] Commit in rust-rage/repos (community-x86_64 community-x86_64/PKGBUILD)

Caleb Maclennan alerque at gemini.archlinux.org
Mon May 2 08:17:19 UTC 2022


    Date: Monday, May 2, 2022 @ 08:17:19
  Author: alerque
Revision: 1192188

archrelease: copy trunk to community-x86_64

Added:
  rust-rage/repos/community-x86_64/
  rust-rage/repos/community-x86_64/PKGBUILD
    (from rev 1192187, rust-rage/trunk/PKGBUILD)

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

Copied: rust-rage/repos/community-x86_64/PKGBUILD (from rev 1192187, rust-rage/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2022-05-02 08:17:19 UTC (rev 1192188)
@@ -0,0 +1,46 @@
+# Maintainer: Caleb Maclennan <caleb at alerque.com>
+# Contributor: Daniel Peukert <daniel at peukert.cc>
+
+pkgname=rust-rage
+_pkgname=${pkgname##rust-}
+pkgver=0.8.0
+pkgrel=1
+pkgdesc='Rust implementation of the age encryption tool'
+arch=(x86_64 i686 arm armv6h armv7h aarch64)
+url="https://github.com/str4d/$_pkgname"
+license=(Apache MIT)
+depends=(fuse2
+         pcsclite)
+makedepends=(cargo)
+_archive="$_pkgname-$pkgver"
+source=("$url/archive/v$pkgver/$_archive.tar.gz")
+sha256sums=('727719d0d308998bb2600e730f7c287e40d0d9f77e77817bac03fe037c436449')
+
+prepare() {
+	cd "$_archive"
+	cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
+}
+
+build() {
+	cd "$_archive"
+	cargo build --frozen --release --all-features
+	cargo run --frozen --release --all-features --example generate-completions
+	cargo run --frozen --release --all-features --example generate-docs
+}
+
+check() {
+	cd "$_archive"
+	cargo test --frozen --all-features
+}
+
+package() {
+	cd "$_archive"
+	for bin in "$_pkgname"{,-keygen,-mount}; do
+		install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/$bin"
+		install -Dm0644 -t "$pkgdir/usr/share/man/man1/" "target/manpages/$bin.1.gz"
+		install -Dm0644 -t "$pkgdir/usr/share/fish/vendor_completions.d/" "target/completions/$bin.fish"
+		install -Dm0644 "target/completions/$bin.bash" "$pkgdir/usr/share/bash-completion/completions/$bin"
+		install -Dm0644 "target/completions/$bin.zsh" "$pkgdir/usr/share/zsh/site-functions/_$bin"
+	done
+	install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE-MIT
+}



More information about the arch-commits mailing list