Package Details: pistol-git 0.3.2.r7.g4b834a9-1

Git Clone URL: (read-only, click to copy)
Package Base: pistol-git
Description: General purpose file previewer
Upstream URL:
Licenses: MIT
Submitter: sharethewisdom
Maintainer: sharethewisdom
Last Packager: sharethewisdom
Votes: 4
Popularity: 0.023264
First Submitted: 2019-11-25 14:32 (UTC)
Last Updated: 2022-07-10 17:17 (UTC)

Dependencies (7)

Required by (0)

Sources (1)

Latest Comments

1 2 Next › Last »

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.


rm: cannot remove '~/.cache/paru/clone/pistol-git/src/pkg/mod/': Permission denied
rm: cannot remove '~/.cache/paru/clone/pistol-git/src/pkg/mod/': Permission denied
rm: cannot remove '~/.cache/paru/clone/pistol-git/src/pkg/mod/': Permission denied

Looks like prepare() block may need update with solution listed here:

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)


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>
pkgdesc='General purpose file previewer'
makedepends=('go' 'git' 'asciidoctor')
optdepends=('ranger: file browser to preview files in' 'lf: file browser to preview files in')

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"
  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)


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().

bader commented on 2021-12-02 16:17 (UTC)

There seems to me a permission issue when trying to re-install the package.

❯ yay -S pistol-git
:: Checking for conflicts...
:: Checking for inner conflicts...
[Aur:1]  pistol-git-0.1.1.r2.gca4dcbb-1

  1 pistol-git                       (Installed) (Build Files Exist)
==> Packages to cleanBuild?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> A
:: Deleting (1/1): /home/user/.cache/yay/pistol-git
unlinkat /home/user/.cache/yay/pistol-git/src/pkg/mod/ permission denied
:: (0/1) Downloaded PKGBUILD: pistol-git
 -> error fetching pistol-git: fatal: destination path 'pistol-git' already exists and is not an empty directory. 
    context: exit status 128

the .gitinore file permissions is set to .r--r--r--