summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4e83f390d77248d0409af2daeff70eb24ef7bc4e (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
# Maintainer:  Greg Minshall <minshall at umich dot edu>
pkgname=credeface
pkgver=1.3.1
pkgrel=1
pkgdesc="use git’s credential-cache to hold general passwords"
arch=(any)
url="https://sr.ht/~minshall/credeface/"
license=('MIT')
depends=(git python3)
makedepends=(asciidoc gawk git)
optdepends=('emacs: create and operate on org-mode files')
# git rev-parse in upstream repo:
# git rev-parse 1.3.1
_tag=4695956e85fc3f6ae40f0683f46b752cb74559bd
source=(git+https://git.sr.ht/~minshall/credeface#tag=${_tag}?signed)
validpgpkeys=(
    BB68C8D3A3D23B9B398FB50AC397C74C54A9EC4F # Greg Minshall <minshall@acm.org>
)
sha256sums=('SKIP')


pkgver() {
    cd "${pkgname}"
    git describe
}

build() {
    cd "${pkgname}"
    make
}

# sadly, no check() 

package() {
    cd "${pkgname}"

    make DESTDIR="${pkgdir}" PREFIX=/usr install
    # install our MIT license
    install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}/"
}