Package Details: pistol-git 0.3.2.r7.g4b834a9-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: sharethewisdom
Last Packager: sharethewisdom
Votes: 4
Popularity: 0.24
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 »

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

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/golang.org/x/sys@v0.0.0-20211124211545-fe61309f8881/.gitignore: 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--

sharethewisdom commented on 2021-05-17 12:28 (UTC)

thanks for notifying me, I added your changes. I haven't tested it because I don't use pistol anymore (I want to avoid any "go" packages at the moment). Please let me know if something breaks.

artdev commented on 2021-05-16 12:46 (UTC)

please add the manpage compilation since it is now possible

i did it with these changes in PKGBUILD

makedepends=('go' 'git' 'asciidoctor')

build() {
  ...
  asciidoctor -b manpage -d manpage README.adoc
}
package() {
  install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname/" "$srcdir/$pkgname/LICENSE"
  install -Dm644 -t "$pkgdir/usr/share/man/man1" "$srcdir/$pkgname/pistol.1"
  install -Dm755 "$srcdir/bin/pistol" "$pkgdir/usr/bin/pistol"
}