diff options
author | Nicolas Stinus | 2017-06-05 07:14:00 +0800 |
---|---|---|
committer | Nicolas Stinus | 2017-06-10 21:23:22 +0800 |
commit | 13fbd945ec1c92ea0520f40c9a8135049d66bcc4 (patch) | |
tree | 4394422f60197f34c4c4d45057ea5c4789f201fa /PKGBUILD | |
parent | cc1884298c9e0569939e245fe3cd0d42adcdc1cf (diff) | |
download | aur-13fbd945ec1c92ea0520f40c9a8135049d66bcc4.tar.gz |
Build and install man page
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -1,7 +1,7 @@ # Maintainer: Nicolas Stinus <nicolas.stinus@gmail.com> pkgname=openvpn-nordvpn -pkgver=0.1.1 +pkgver=0.1.5 pkgrel=1 pkgdesc="OpenVPN helper script for nordvpn.com" arch=(any) @@ -16,7 +16,7 @@ depends=('openvpn' 'coreutils') optdepends=('iputils: run ping and rank functions' 'vpnfailsafe-git: use instead of update-resolv-conf if available') -makedepends=('coreutils') +makedepends=('coreutils' 'pandoc') provides=('nordvpn') source=('git+https://github.com/nstinus/nordvpn.git#branch=master') sha1sums=('SKIP') @@ -29,6 +29,14 @@ pkgver() { | sed 's/v//' } +build() { + sed "s/@version@/$pkgver/g" nordvpn/doc.md \ + | pandoc -s -f markdown -t man \ + | gzip \ + > nordvpn.8.gz +} + package() { + install -D -m 644 nordvpn.8.gz $pkgdir/usr/share/man/man8/nordvpn.8.gz install -D -m 755 nordvpn/nordvpn $pkgdir/usr/bin/nordvpn } |