summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e4978ebfe2d1f416f2533e1ce3671d27fbe440a6 (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
# Maintainer: Thomas Ellison <thomasjlsn@gmail.com>
pkgname=pw-git
pkgver=1.3
pkgrel=1
pkgdesc="A simple password manager"
arch=(any)
url="https://gitlab.com/thomasjlsn/pw"
license=('GPL3')
depends=(bash gnupg tree)
makedepends=(git make)
optdepends=("qrencode: encoding passwords as qr codes")
provides=(pw-git)
conflicts=(pw)
source=("git+$url")
md5sums=("SKIP")

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

package() {
    cd pw
    install -Dm755 pw.sh "$pkgdir/usr/bin/pw"
    install -Dm644 pw.1  "$pkgdir/usr/share/man/man1/pw.1"
    install -Dm644 LICENSE "$pkgdir/usr/share/licenses/pw/LICENSE"
    install -Dm644 completion/bash_completion "$pkgdir/usr/share/bash-completion/completions/_pw"
    install -Dm644 completion/zsh_completion "$pkgdir/usr/share/zsh/site-functions/_pw"
}