db-move: moved libdmapsharing from [testing] to [extra] (x86_64)
[arch-packages.git] / easy-rsa / trunk / PKGBUILD
blob62ed02ca97391aeacc839e970f2c1ddbbd032482
1 # Maintainer: Thomas Bächler <thomas@archlinux.org>
3 pkgname=easy-rsa
4 pkgver=3.1.2
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=('d63cf129490ffd6d8792ede7344806c506c82c32428b5bb609ad97ca6a6e4499'
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