summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cc8d9f7166caccf0e4944f617ae00490c9c36dbf (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
# Maintainer: HLFH <gaspard@dhautefeuille.eu>

pkgname=danectl-git
pkgver=0.7.4.r8.gd0f0cc6
pkgrel=1
pkgdesc="DNSSEC DANE implementation manager"
arch=('any')
url="https://github.com/raforg/danectl"
license=('GPL2')
depends=('coreutils' 'sed' 'grep' 'ldns' 'certbot' 'openssl' 'perl' 'openssh' 'gnupg')
makedepends=('git')
optdepends=('bash' 'zsh')
provides=('danectl')
source=("git+https://github.com/raforg/danectl.git")
b2sums=('SKIP')

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

package() {
    cd danectl/
    install -Dm755 danectl $pkgdir/usr/bin/danectl
    install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/danectl/LICENSE
}