summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorZhuoyun Wei2015-03-14 20:33:10 +0800
committerZhuoyun Wei2015-03-14 20:33:10 +0800
commitc77dc71bc655861bab6ccd797948a345c0ea7bd2 (patch)
treef70baba3a293541523e9a2cc930aa8e5b63ac175
downloadaur-c77dc71bc655861bab6ccd797948a345c0ea7bd2.tar.gz
Add govpn
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD35
2 files changed, 49 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..5be6faa2277
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = govpn
+ pkgdesc = Simple secure free software VPN daemon
+ pkgver = 3.4
+ pkgrel = 1
+ url = http://www.cypherpunks.ru/govpn/
+ arch = i686
+ arch = x86_64
+ license = GPL
+ makedepends = go
+ source = http://sourceforge.net/projects/govpn/files/govpn-3.4.tar.xz
+ sha256sums = 266612a7f8faa6ceb2955ed611c0c21872776306f4eaad5b785145bbb0390c82
+
+pkgname = govpn
+
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
+}