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

George Rawlinson grawlinson at gemini.archlinux.org
Thu Apr 7 23:30:26 UTC 2022


    Date: Thursday, April 7, 2022 @ 23:30:26
  Author: grawlinson
Revision: 1182921

addpkg: xsv 0.13.0-2

Added:
  xsv/
  xsv/repos/
  xsv/trunk/
  xsv/trunk/PKGBUILD

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

Added: xsv/trunk/PKGBUILD
===================================================================
--- xsv/trunk/PKGBUILD	                        (rev 0)
+++ xsv/trunk/PKGBUILD	2022-04-07 23:30:26 UTC (rev 1182921)
@@ -0,0 +1,51 @@
+# Maintainer: George Rawlinson <grawlinson at archlinux.org>
+# Contributor: Aaron DeVore <aaron.devore at gmail.com>
+
+pkgname=xsv
+pkgver=0.13.0
+pkgrel=2
+pkgdesc="A CLI for indexing, slicing, analyzing, splitting and joining CSV files"
+arch=('x86_64')
+url="https://github.com/BurntSushi/xsv"
+license=('Unlicense' 'MIT')
+depends=('gcc-libs')
+makedepends=('git' 'rust')
+_commit='2b4cbaa0eecf7b507a612632fe00289b1b358c15'
+source=("git+$url.git#commit=$_commit")
+b2sums=('SKIP')
+
+pkgver() {
+  cd xsv
+
+  git describe --tags
+}
+
+prepare() {
+  cd xsv
+
+  cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
+}
+
+build() {
+  cd xsv
+
+  cargo build --frozen --release
+}
+
+check() {
+  cd xsv
+
+  cargo test --frozen --release
+}
+
+package() {
+  cd xsv
+
+  # binary
+  install -vDm755 -t "$pkgdir/usr/bin" target/release/xsv
+
+  # documentation
+  install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" README.md
+  # licenses
+  install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" ./*LICENSE*
+}



More information about the arch-commits mailing list