[crux-commits] ports/contrib (3.6): pistol: initial commit, version 0.2.1

crux at crux.nu crux at crux.nu
Sun Jul 25 14:57:22 UTC 2021


commit 22b36995727ae12892ea9d75ecf87abf25e8cb07
Author: Tim Biermann <tbier at posteo.de>
Date:   Sun Jul 25 13:24:11 2021 +0200

    pistol: initial commit, version 0.2.1

diff --git a/pistol/.footprint b/pistol/.footprint
new file mode 100644
index 000000000..435097253
--- /dev/null
+++ b/pistol/.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/pistol
diff --git a/pistol/.signature b/pistol/.signature
new file mode 100644
index 000000000..cb8eaddb1
--- /dev/null
+++ b/pistol/.signature
@@ -0,0 +1,5 @@
+untrusted comment: verify with /etc/ports/contrib.pub
+RWSagIOpLGJF37+DJkvHJ85c4gyV3jMrwP+obCQ9vYSU/s1TSCDMBVslAg//6UmsHdFujqmd2soWCQFnXbL2Nrt9pO1M2evr0AM=
+SHA256 (Pkgfile) = d9cff5b0a9cded3177e21bd48f937dcdb58f9fdde468cb6dec2d56e8b3fdbdf3
+SHA256 (.footprint) = 261cd83f29c092bb94b3b22b330e2376943ba7dcc415500ead6ed144055467a8
+SHA256 (pistol-0.2.1.tar.gz) = b6c9b4b2272a9a12ac9987a93702dca9dc1a4eaedefc5b5e17a5b6e34fe14f97
diff --git a/pistol/Pkgfile b/pistol/Pkgfile
new file mode 100644
index 000000000..74c0ded95
--- /dev/null
+++ b/pistol/Pkgfile
@@ -0,0 +1,26 @@
+# Description: General purpose file previewer designed for Ranger, Lf to make scope.sh redundant
+# URL: https://github.com/doronbehar/pistol
+# Maintainer: Tim Biermann, tbier at posteo dot de
+# Depends on: go
+
+name=pistol
+version=0.2.1
+release=1
+source=(https://github.com/doronbehar/pistol/archive/v$version/$name-$version.tar.gz)
+
+build() {
+  cd $name-$version
+
+  export CGO_CPPFLAGS="${CPPFLAGS}"
+  export CGO_CFLAGS="${CFLAGS}"
+  export CGO_CXXFLAGS="${CXXFLAGS}"
+  export CGO_LDFLAGS="${LDFLAGS}"
+  export GO111MODULE=on
+
+  mkdir "$PKGMK_SOURCE_DIR/gopath" || true
+  export GOPATH="$PKGMK_SOURCE_DIR/gopath"
+
+  go get -u github.com/doronbehar/pistol/cmd/pistol
+
+  install -Dm755 $GOPATH/bin/$name $PKG/usr/bin/$name
+}


More information about the crux-commits mailing list