Date: Tuesday, August 30, 2022 @ 20:24:50
  Author: alerque
Revision: 1288999

archrelease: copy trunk to community-x86_64

Added:
  rq/repos/community-x86_64/
  rq/repos/community-x86_64/PKGBUILD
    (from rev 1288998, rq/trunk/PKGBUILD)

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

Copied: rq/repos/community-x86_64/PKGBUILD (from rev 1288998, rq/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD                           (rev 0)
+++ community-x86_64/PKGBUILD   2022-08-30 20:24:50 UTC (rev 1288999)
@@ -0,0 +1,37 @@
+# Maintainer: Caleb Maclennan <[email protected]>
+# Contributor: David Flemström <[email protected]>
+
+pkgname=rq
+pkgver=1.0.4
+pkgrel=1
+pkgdesc='Record Query, a tool for record analysis and transformation'
+arch=(x86_64)
+url="https://github.com/dflemstr/$pkgname";
+license=(Apache)
+depends=(gcc-libs)
+makedepends=(cargo)
+_archive="$pkgname-$pkgver"
+options=(!lto)
+source=("$url/archive/v$pkgver/$_archive.tar.gz")
+sha256sums=('4c3fc4427d02271c93a2cf4a784887982e97f9aba4946900aad1a35b142f9a47')
+
+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
+}

Reply via email to