archrelease: copy trunk to extra-x86_64
[arch-packages.git] / easy-rsa / trunk / PKGBUILD
blob58af4d15dee9054cbc8cd6f65ac177641936e307
1 # Maintainer: Thomas Bächler <thomas@archlinux.org>
3 pkgname=easy-rsa
4 pkgver=3.0.8
5 pkgrel=2
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         '0001-fix-paths.patch')
18 sha256sums=('cae114c212a5be4d89f2253d36c70ab94f68d295f24e8b6711c2cab0fabf7e18'
19             'SKIP'
20             '097c0d4980698004b11cc5e4cf12229d1f4a498fd1bd5d0442f4bec2cf7b11ea')
22 prepare() {
23         cd EasyRSA-${pkgver}/
25         # fix output of help command, we have it in PATH
26         sed -i 's|./easyrsa|easyrsa|' easyrsa
28         # fix paths
29         patch -Np1 < "${srcdir}"/0001-fix-paths.patch
32 package() {
33         cd EasyRSA-${pkgver}/
35         install -D -m0755 easyrsa "${pkgdir}"/usr/bin/easyrsa
37         install -D -m0644 openssl-easyrsa.cnf "${pkgdir}"/etc/easy-rsa/openssl-easyrsa.cnf
38         install -D -m0644 vars.example "${pkgdir}"/etc/easy-rsa/vars
39         install -d -m0755 "${pkgdir}"/etc/easy-rsa/x509-types/
40         install -m0644 x509-types/* "${pkgdir}"/etc/easy-rsa/x509-types/
42         install -d -m0755  "${pkgdir}"/usr/share/doc/easy-rsa/
43         install -m0644 doc/* ChangeLog "${pkgdir}"/usr/share/doc/easy-rsa/
45         install -D -m0644 COPYING.md "${pkgdir}"/usr/share/licenses/easy-rsa/COPYING