Package Details: pistol-git 0.4.2.r10.g5e71fe6-1

Git Clone URL: https://aur.archlinux.org/pistol-git.git (read-only, click to copy)
Package Base: pistol-git
Description: General purpose file previewer
Upstream URL: https://github.com/doronbehar/pistol
Licenses: MIT
Submitter: sharethewisdom
Maintainer: fontskeepmeawake
Last Packager: fontskeepmeawake
Votes: 5
Popularity: 0.028880
First Submitted: 2019-11-25 14:32 (UTC)
Last Updated: 2024-03-25 18:28 (UTC)

Dependencies (7)

Required by (0)

Sources (1)

Latest Comments

1 2 Next › Last »

sharethewisdom commented on 2024-03-25 09:11 (UTC)

I disowned the package, as I'm not running arch nor using pistol at the moment. I'm sorry it took so long.

rek2 commented on 2023-07-31 15:18 (UTC)

Does not work for me, is failing for the longest time :(

turgid commented on 2023-07-12 13:13 (UTC) (edited on 2023-07-12 13:16 (UTC) by turgid)

@sharethewisdom Any chance you could update the pkgbuild so this works?

I'm also seeing errors during install due to the way the go packages are permissioned.

Example:

rm: cannot remove '~/.cache/paru/clone/pistol-git/src/pkg/mod/github.com/dlclark/regexp2@v1.10.0/regexp_performance_test.go': Permission denied
rm: cannot remove '~/.cache/paru/clone/pistol-git/src/pkg/mod/github.com/dlclark/regexp2@v1.10.0/match.go': Permission denied
rm: cannot remove '~/.cache/paru/clone/pistol-git/src/pkg/mod/github.com/dlclark/regexp2@v1.10.0/replace_test.go': Permission denied

Looks like prepare() block may need update with solution listed here: https://bbs.archlinux.org/viewtopic.php?pid=1847761#p1847761

maksut commented on 2023-05-14 15:03 (UTC)

As the previous comment stated, this package is not installing the binary.

Maybe it needs to be added back into package() like this:

  install -Dm755 "$srcdir/pistol-git/pistol" "$pkgdir/usr/bin/pistol"

donbex commented on 2023-02-02 22:20 (UTC)

I presume it is not intentional that since the last change on 2022-07-10 this package is not installing the pistol executable any more.

sharethewisdom commented on 2022-07-10 17:19 (UTC)

fixed

haawda commented on 2022-07-10 13:20 (UTC)

No longer builds. This one works for me:

# Maintainer: Bart De Roy <de dot roy dot bart at gmail dot com>
pkgname=pistol-git
pkgver=0.3.2.r7.g4b834a9
pkgrel=1
pkgdesc='General purpose file previewer'
arch=('x86_64')
_gourl="github.com/doronbehar/pistol"
url="https://$_gourl"
license=('MIT')
makedepends=('go' 'git' 'asciidoctor')
depends=('file')
optdepends=('ranger: file browser to preview files in' 'lf: file browser to preview files in')
source=("$pkgname::git+$url#branch=master")
sha256sums=('SKIP')

pkgver() {
  cd "$srcdir/$pkgname"
  # cuts off 'v' prefix and uses most recent
  # un-annotated tag reachable from the last commit
  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "$srcdir/$pkgname"
  # -fix flag is a no-op when using modules
  GOPATH="$srcdir" go get -v "$_gourl/cmd/pistol"
  make
  asciidoctor -b manpage -d manpage README.adoc
}

package() {
  cd "$srcdir/$pkgname"
  make DESTDIR="$pkgdir" install
}

markstos commented on 2022-01-04 14:49 (UTC)

I installed it today with paru and the package installed fine.

sharethewisdom commented on 2021-12-03 00:25 (UTC)

see https://bbs.archlinux.org/viewtopic.php?id=246720

I'll take a look, it may take a while... go clean -modcache appears to be the way they clean read-only module directories. In build() it should probably also be env CGO_ENABLED=1 GO111MODULE=on GOPATH="$srcdir" go get -v "$_gourl/cmd/pistol".

bader commented on 2021-12-02 16:20 (UTC) (edited on 2021-12-02 16:21 (UTC) by bader)

Build fails due to the attempt to strip src/bin/pistol

...
strip: '/home/user/.cache/yay/pistol-git/src/bin/pistol': No such file
==> ERROR: A failure occurred in build().
    Aborting...