Package Details: rofi-zeal-git 1.0.3.r2.g1c6f0d3-1

Git Clone URL: https://aur.archlinux.org/rofi-zeal-git.git (read-only, click to copy)
Package Base: rofi-zeal-git
Description: Search code documentation from rofi
Upstream URL: https://github.com/Zeioth/rofi-zeal.git
Keywords: addon dash dev docs man offline plugin rofi
Licenses: MIT
Conflicts: rofi-zeal
Provides: rofi-zeal
Submitter: Zeioth
Maintainer: Zeioth
Last Packager: Zeioth
Votes: 3
Popularity: 0.000000
First Submitted: 2020-06-23 20:28 (UTC)
Last Updated: 2023-10-15 17:52 (UTC)

Required by (0)

Sources (1)

Latest Comments

SpotlightKid commented on 2023-07-30 09:24 (UTC) (edited on 2023-07-30 10:16 (UTC) by SpotlightKid)

The PKGBUILD is broken in many ways (undefined $_pkgname, pkgver() uses hard-coded version, run-time dependencies wrong, creates a dir in ~/.cache at packaging time, which makes no sense, etc.). Here's a fixed one:

# Maintainer: Adrian Lopez <zeioth@hotmail.com>
# Contributor: Christopher Arndt <aur -at- chrisarndt -dot- de>

_pkgname=rofi-zeal
pkgname=$_pkgname-git
pkgver=1.0.3.r2.g1c6f0d3
pkgrel=1
pkgdesc='Search code documentation from rofi'
arch=(any)
url="https://github.com/Zeioth/rofi-zeal.git"
license=(MIT)
depends=(rofi zeal)
makedepends=(git)
optdepends=(
    'i3-wm: display man pages'
)
provides=($_pkgname)
conflicts=($_pkgname)
source=("$_pkgname::git+$url")
sha256sums=('SKIP')

pkgver() {
  cd $_pkgname
  ( set -o pipefail
    git describe --long --tags 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  )
}

package() {
  cd $_pkgname
  install -vDm755 rofi-zeal.sh "$pkgdir"/usr/bin/$_pkgname
}

Zeioth commented on 2023-03-19 04:43 (UTC)

Thank you for reporting this @pigmonkey, this has been fixed. From now on we install under '/usr/bin/rofi-zeal'. We won't install anymore on /usr/share/rofi/rofi-zeal/rofi-zeal.sh or ~/local/bin. But ~/.cache is still used for the history (that way every user will have a different history file).

pigmonkey commented on 2021-01-01 03:36 (UTC)

This PKGBUILD attempts to install the shell script to ~/.local. That will only make it available to the installing user. I don't think that is considered appropriate for packages. It should simply copy rofi-zeal.sh to /usr/bin/rofi-zeal.