[arch-commits] Commit in (riff riff/repos riff/trunk riff/trunk/PKGBUILD)

Caleb Maclennan alerque at gemini.archlinux.org
Tue Sep 6 19:24:11 UTC 2022


    Date: Tuesday, September 6, 2022 @ 19:24:11
  Author: alerque
Revision: 1294664

Initial add of riff

Added:
  riff/
  riff/repos/
  riff/trunk/
  riff/trunk/PKGBUILD

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

Added: riff/trunk/PKGBUILD
===================================================================
--- riff/trunk/PKGBUILD	                        (rev 0)
+++ riff/trunk/PKGBUILD	2022-09-06 19:24:11 UTC (rev 1294664)
@@ -0,0 +1,36 @@
+# Maintainer: Caleb Maclennan <caleb at alerque.com>
+
+pkgname=riff
+_pkgname=${pkgname##rust-}
+pkgver=1.0.0
+pkgrel=1
+pkgdesc='automatically provide external dependencies for Rust projects'
+arch=(x86_64)
+url="https://github.com/DeterminateSystems/$_pkgname"
+license=(MPL2)
+depends=(cargo
+         nix)
+_archive="$_pkgname-$pkgver"
+source=("$url/archive/v$pkgver/$_archive.tar.gz")
+sha256sums=('213de3544fd59b6733b0d303011f8106a58848f311e80017b448ac067bb279dc')
+
+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
+}



More information about the arch-commits mailing list