summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8bcf06f4abfec92854ffd267ed45ceb681aaa041 (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Maintainer: Ralph Torres <mail at ralphptorr dot es>
# Contributor: Brett Cornwall <ainola at archlinux dot org>
# Contributor: schalox <schalox at gmail dot com>
# Contributor: Simon Zimmermann <simon at insmo dot com>
# Contributor: Jon Yamokoski <code at jonyamo dot us>

pkgname=pass-git
pkgver=1.7.4.r12.28cec11
pkgrel=1
pkgdesc='Stores, retrieves, generates, and synchronizes passwords securely'
arch=(any)
url=https://passwordstore.org
license=(GPL2)

provides=(pass passmenu)
conflicts=(pass)
depends=(bash gnupg tree)
makedepends=(git)
checkdepends=(git)
optdepends=(
    'dmenu: for passmenu'
    'dmenu-wayland: for passmenu in Wayland'
    'git: for git support'
    'qrencode: for QR code support'
    'wl-clipboard: for wlroots-based Wayland clipboard support'
    'xclip: for X11 clipboard support'
    'xdotool: to type passwords with passmenu'
    'ydotool: to type passwords with passmenu in Wayland'
)
source=(git+https://git.zx2c4.com/password-store.git)
sha256sums=(SKIP)

pkgver() {
    cd password-store
    git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

check() {
    cd password-store
    make test
}

package() {
    cd password-store
    make DESTDIR="${pkgdir}" WITH_ALLCOMP=yes install

    cd contrib/dmenu
    install -Dm0755 passmenu "${pkgdir}/usr/bin/passmenu"
}