archrelease: copy trunk to extra-x86_64
[arch-packages.git] / easy-rsa / trunk / PKGBUILD
blob51e479509c5532051c56711058dfb4119be00155
1 # Maintainer: Thomas Bächler <thomas@archlinux.org>
3 pkgname=easy-rsa
4 pkgver=3.1.0
5 pkgrel=1
6 pkgdesc='Simple shell based CA utility'
7 arch=('any')
8 url='https://github.com/OpenVPN/easy-rsa'
9 depends=('openssl' 'sh' 'grep')
10 license=('custom')
11 backup=('etc/easy-rsa/openssl-easyrsa.cnf'
12         'etc/easy-rsa/vars')
13 validpgpkeys=(
14         '65FF3F24AA08E882CB444C94D731D97A606FD463'      # Josh Cepek <josh.cepek@usa.net>
15         '6F4056821152F03B6B24F2FCF8489F839D7367F3')     # Eric Crist <ecrist@secure-computing.net>
16 source=("https://github.com/OpenVPN/easy-rsa/releases/download/v${pkgver}/EasyRSA-${pkgver}.tgz"{,.sig})
17 sha256sums=('01b07ecb58dc003e47d4e74f9fc4da35ec6842e96cd003d66ed72a43df983659'
18             'SKIP')
20 package() {
21         cd EasyRSA-${pkgver}/
23         install -D -m0755 easyrsa "${pkgdir}"/usr/bin/easyrsa
25         install -D -m0644 openssl-easyrsa.cnf "${pkgdir}"/etc/easy-rsa/openssl-easyrsa.cnf
26         install -D -m0644 vars.example "${pkgdir}"/etc/easy-rsa/vars
27         install -d -m0755 "${pkgdir}"/etc/easy-rsa/x509-types/
28         install -m0644 x509-types/* "${pkgdir}"/etc/easy-rsa/x509-types/
30         install -d -m0755  "${pkgdir}"/usr/share/doc/easy-rsa/
31         install -m0644 doc/* ChangeLog "${pkgdir}"/usr/share/doc/easy-rsa/
33         install -D -m0644 COPYING.md "${pkgdir}"/usr/share/licenses/easy-rsa/COPYING