Package Details: bitwarden-rofi 0.5-1

Git Clone URL: https://aur.archlinux.org/bitwarden-rofi.git (read-only, click to copy)
Package Base: bitwarden-rofi
Description: Wrapper for Bitwarden and Rofi
Upstream URL: https://github.com/mattydebie/bitwarden-rofi
Licenses: GPL3
Submitter: Mange
Maintainer: mattydebie
Last Packager: mattydebie
Votes: 8
Popularity: 0.001271
First Submitted: 2019-01-04 19:45 (UTC)
Last Updated: 2023-07-07 06:48 (UTC)

Dependencies (7)

Required by (0)

Sources (1)

Latest Comments

tpreissler commented on 2023-07-30 09:04 (UTC) (edited on 2023-07-30 09:07 (UTC) by tpreissler)

Quick and dirty:

# Maintainer: Magnus Bergmark <magnus.bergmark@gmail.com>
pkgname=bitwarden-rofi
pkgver=0.5
pkgrel=2
pkgdesc="Wrapper for Bitwarden and Rofi"
arch=('any')
url="https://github.com/mattydebie/$pkgname"
license=('GPL3')
depends=('rofi' 'jq' 'bitwarden-cli')
optdepends=('xsel: copy to clipboard'
            'xclip: copy to clipboard'
            'wl-clipboard: copy to clipboard on wayland'
            'xdotool')
makedepends=()
source=("https://github.com/mattydebie/$pkgname/archive/$pkgver.tar.gz")
sha512sums=('a5ffd11f65e14fe7d506d3f72cb6b71471220b2cdd99023fb6ea624394a4b26fc344215b6b0999c2c3584fb413fb0f4372220e86f6748f97ca181995de948abb')

package() {
  cd "$pkgname-$pkgver" || exit 1
  local doc_path="$pkgdir/usr/share/doc/${pkgname}"

  install -Dm755 "bwmenu" "$pkgdir/usr/bin/bwmenu"
  install -Dm644 "lib-bwmenu" "$pkgdir/usr/bin/lib-bwmenu"

  install -Dm755 -d "$pkgdir/usr/share/doc/${pkgname}"
  install -Dm755 -d "$pkgdir/usr/share/doc/${pkgname}/img"

  install -Dm644 "README.md" "${doc_path}/README.md"
  install -Dm644 img/* "${doc_path}/img/"

  install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
}

But this installs the lib_bwmenu library in /bin/. Not too sure of a proper place. If we need to move it bwmenu would require patching. At least lib-bwmenu is installed with 644.

billkaguru commented on 2023-07-27 01:47 (UTC)

As you know but may have forgot in this context, you made bwmenu source lib-bwmenu between v0.4 and 0.5, so the latter needs to be added to the PKGBUILD. The bitwarden-rofi-git package has an example of this: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=bitwarden-rofi-git#n30