summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorZhuoyun Wei2015-03-14 20:33:10 +0800
committerZhuoyun Wei2015-03-14 20:33:10 +0800
commitc77dc71bc655861bab6ccd797948a345c0ea7bd2 (patch)
treef70baba3a293541523e9a2cc930aa8e5b63ac175 /PKGBUILD
downloadaur-c77dc71bc655861bab6ccd797948a345c0ea7bd2.tar.gz
Add govpn
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..f45241de664
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,35 @@
+# Maintainer: Zhuoyun Wei <wzyboy@wzyboy.org>
+
+pkgname=govpn
+pkgver=2.1
+pkgrel=1
+pkgdesc="Simple secure free software VPN daemon"
+arch=('i686' 'x86_64')
+url="http://www.cypherpunks.ru/govpn/"
+makedepends=('go' 'plantuml') # PlantUML is for generating HTML docs only.
+license=('GPL')
+source=(https://github.com/stargrave/${pkgname}/archive/${pkgver}.tar.gz)
+noextract=("${pkgver}.tar.gz")
+sha256sums=('b93eae955a48f12a2121a93608348c9af7bd2ac1089f2739a14763a3fddb74e2')
+
+build() {
+ mkdir -p $pkgname/src
+ tar xfC ${pkgver}.tar.gz $pkgname/src
+ mv $pkgname/src/$pkgname-$pkgver $pkgname/src/$pkgname
+ export GOPATH=$(pwd)/$pkgname:$GOPATH
+ cd $pkgname/src/$pkgname
+ make
+
+ # Generating HTML docs with PlantUML.
+ cd doc
+ make
+}
+
+package() {
+ cd $srcdir/$pkgname/src/$pkgname
+ install -D govpn-client $pkgdir/usr/bin/govpn-client
+ install -D govpn-server $pkgdir/usr/bin/govpn-server
+ mkdir -p $pkgdir/usr/share/doc/$pkgname/
+ install -Dm644 doc/${pkgname}.html/* $pkgdir/usr/share/doc/$pkgname/
+ install -Dm644 COPYING $pkgdir/usr/share/licenses/$pkgname/COPYING
+}