summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 121ec308fb40444ec0359813712231b73abfafd2 (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
# Maintainer: HLFH <gaspard@dhautefeuille.eu>
pkgname=hash-slinger-git
pkgver=3.3+r1+g0bb0dba
pkgrel=2
pkgdesc="Tools to generate special DNS records (SSHFP, TLSA, OPENPGPKEY, IPSECKEY)"
arch=(any)
url="https://github.com/letoams/hash-slinger"
license=('GPL2')
depends=('python-dnspython' 'python-m2crypto' 'unbound')
makedepends=('xmlto')
optdepends=('openssh: for sshfp'
            'python-gnupg: for openpgpkey'
            'libreswan: for ipseckey (if not using openswan or strongswan)'
            'openswan: for ipseckey (if not using libreswan or strongswan)'
            'strongswan: for ipseckey (if not using libreswan or openswan)')
conflicts=('hash-slinger')
source=(git+https://github.com/letoams/hash-slinger)
b2sums=('SKIP')

pkgver() {
  cd hash-slinger
  git describe --tags | sed 's#v##;s#-#+#g;s#+#+r#'
}

build() {
  cd "$srcdir/hash-slinger"
  make
}

package() {
  cd "$srcdir/hash-slinger"
  make DESTDIR="$pkgdir/" install
}