pistol: initial commit, version 0.2.1

This commit is contained in:
Tim Biermann 2021-07-25 13:24:11 +02:00
parent 46a4f719ee
commit 22b3699572
Signed by: tb
GPG Key ID: 42F8B4E30B673606
3 changed files with 34 additions and 0 deletions

3
pistol/.footprint Normal file
View File

@ -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

5
pistol/.signature Normal file
View File

@ -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

26
pistol/Pkgfile Normal file
View File

@ -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
}