[crux-commits] ports/contrib (3.5): bat: initial commit, version 0.15.4

crux at crux.nu crux at crux.nu
Tue Jul 21 17:32:39 UTC 2020


commit e4b47db67ab5aa35d370b234bc986716541a0b25
Author: Tim Biermann <tbier at posteo.de>
Date:   Tue Jul 21 17:23:48 2020 +0000

    bat: initial commit, version 0.15.4

diff --git a/bat/.footprint b/bat/.footprint
new file mode 100644
index 000000000..6c1b91b80
--- /dev/null
+++ b/bat/.footprint
@@ -0,0 +1,3 @@
+drwxr-xr-x	root/root	usr/
+drwxr-xr-x	root/root	usr/bin/
+-rwxr-xr-x	root/root	usr/bin/bat
diff --git a/bat/.signature b/bat/.signature
new file mode 100644
index 000000000..a4cdd5f68
--- /dev/null
+++ b/bat/.signature
@@ -0,0 +1,5 @@
+untrusted comment: verify with /etc/ports/contrib.pub
+RWSagIOpLGJF3xhUygXAzIA6Xb7zEB2aWt5Z6hLsSk1Ad8A5Ez/uDkV0OI5c7817OTUUV46dJ3G6JnVy1W+23Va0BYgB3Gdb1g8=
+SHA256 (Pkgfile) = 2057475168c3f4c13f15b86e1fce568377e4f5ec8f4f4e460cc30929f2f7c4b2
+SHA256 (.footprint) = 7d7c597044f485aecf5b2c12f56d294b1f8a66f7e2515693ad3b29aba8628209
+SHA256 (bat-0.15.4.tar.gz) = 03b7c8ad6221ca87cecd71f9e3e2167f04f750401e2d3dcc574183aabeb76a8b
diff --git a/bat/Pkgfile b/bat/Pkgfile
new file mode 100644
index 000000000..357670982
--- /dev/null
+++ b/bat/Pkgfile
@@ -0,0 +1,21 @@
+# Description:  A cat(1) clone with wings
+# URL: https://github.com/sharkdp/bat
+# Maintainer: Tim Biermann, tbier at posteo dot de
+# Depends on: rust
+
+name=bat
+version=0.15.4
+release=1
+source=(https://github.com/sharkdp/bat/archive/v$version/$name-$version.tar.gz)
+
+build() {
+  cd $name-$version
+  prt-get isinst sccache && export RUSTC_WRAPPER=/usr/bin/sccache
+  mkdir "$PKGMK_SOURCE_DIR/rust" || true
+  export CARGO_HOME="$PKGMK_SOURCE_DIR/rust"
+
+  cargo update
+  cargo fetch
+  cargo build --release --locked
+  install -Dt $PKG/usr/bin target/release/bat
+}


More information about the crux-commits mailing list