summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 20ae7331ba51928b93e63086073c00fc39c5f844 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Maintainer: sife <wyattgoettsch@gmx.us>

pkgname=dmenu_bw-git
pkgver=r64.2813188
pkgrel=11
pkgdesc="dmenu wrapper for bitwarden-cli written in POSIX shellscript."
arch=('x86_64')
url="https://github.com/Sife-ops/dmenu_bw"
license=('GPL3')
depends=('jq' 'yad' 'xclip')
optdepends=('libnotify' 'dmenu')
provides=('dmenu_bw')
conflicts=('dmenu_bw')
source=("git+${url}.git")
sha256sums=('SKIP')

pkgver() {
    cd "$srcdir/dmenu_bw"
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
    cd "$srcdir/dmenu_bw"
    install -Dm644 LICENSE "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
    install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
    install -Dm755 dmenu_bw "$pkgdir/usr/bin/dmenu_bw"
}