summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cf08f13f966ff27ee8604f3c232e058061d5322c (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
# Maintainer: ghostbuster <ghost_buster+aur@posteo.de>
pkgname=caff-git
_pkgname=caff
pkgver=r823.a8e6e7d
pkgrel=4
pkgdesc="CA Fire and Forget is a script that helps you in keysigning."
arch=('any')
url="https://salsa.debian.org/stappers/pgp-tools"
license=('GPL')
depends=('gnupg' 'perl' 'perl-gnupg-interface' 'perl-mime-tools' 'perl-text-template' 'perl-net-idn-encode' 'inetutils')
makedepends=('git')
conflicts=('signing-party')
sha256sums=('SKIP')
source=("$_pkgname::git+https://salsa.debian.org/debian/signing-party.git")

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

build() {
  cd "${srcdir}/${_pkgname}/${_pkgname}"
  make
}

package() {
  cd "${srcdir}/${_pkgname}/${_pkgname}"

  install -D -m755 "${srcdir}/${_pkgname}/${_pkgname}/caff" \
    "${pkgdir}/usr/bin/caff"
  install -D -m755 "${srcdir}/${_pkgname}/${_pkgname}/pgp-clean" \
    "${pkgdir}/usr/bin/pgp-clean"
  install -D -m755 "${srcdir}/${_pkgname}/${_pkgname}/pgp-fixkey" \
    "${pkgdir}/usr/bin/pgp-fixkey"

  install -D -m644 "${srcdir}/${_pkgname}/${_pkgname}/caff.1" \
    "${pkgdir}/usr/share/man/man1/caff.1"
  install -D -m644 "${srcdir}/${_pkgname}/${_pkgname}/pgp-clean.1" \
    "${pkgdir}/usr/share/man/man1/pgp-clean.1"
  install -D -m644 "${srcdir}/${_pkgname}/${_pkgname}/pgp-fixkey.1" \
    "${pkgdir}/usr/share/man/man1/pgp-fixkey.1"
}

# vim:set ts=2 sw=2 et: