summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Matveev2015-05-10 22:20:16 +0300
committerSergey Matveev2015-05-10 22:20:16 +0300
commitbc47dc327f55b9d177f16a720077c1163151a7a4 (patch)
tree26f361b59752b1a3aac02f9a5d115e3673e57d3c
parent91842683df6836af2c983f2fc5504be7278e4333 (diff)
downloadaur-bc47dc327f55b9d177f16a720077c1163151a7a4.tar.gz
Update GoVPN to 3.2. Simplify its building and installation
* This version contains dependent libraries source code and makefile works with $GOPATH itself. Remove GOPATH setting. * Use newly appeared install target that puts binaries, installs info-documentation, utility scripts * Use install-strip target to make binaries smaller * Remove documentation produced with install-target. Override its contents with HTML docs.
-rw-r--r--PKGBUILD22
1 files changed, 7 insertions, 15 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 4ea8121885e..5cb58deceb9 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Zhuoyun Wei <wzyboy@wzyboy.org>
pkgname=govpn
-pkgver=3.1
+pkgver=3.2
pkgrel=1
pkgdesc="Simple secure free software VPN daemon"
arch=('i686' 'x86_64')
@@ -10,26 +10,18 @@ makedepends=('go')
license=('GPL')
source=(http://sourceforge.net/projects/${pkgname}/files/${pkgname}-${pkgver}.tar.xz)
noextract=("${pkgver}.tar.xz")
-sha256sums=('4034a67eb472e33760ed1783ca871f531c3a6be99b9bd6213f4f83c1147c344b')
+sha256sums=('388e98d6adef5ebf3431b0d48419f54d2e2064c657de67e23c669ebcf273126d')
build() {
- mkdir -p $pkgname/src
- tar xfC ${pkgname}-${pkgver}.tar.xz $pkgname/src
- mv $pkgname/src/$pkgname-$pkgver $pkgname/src/$pkgname
- export GOPATH=$(pwd)/$pkgname:$GOPATH
- cd $pkgname/src/$pkgname
- make
+ tar xf ${pkgname}-${pkgver}.tar.xz
+ make -C ${pkgname}-${pkgver}
}
package() {
- cd $srcdir/$pkgname/src/$pkgname
- install -D govpn-client $pkgdir/usr/bin/govpn-client
- install -D govpn-server $pkgdir/usr/bin/govpn-server
- install -D govpn-verifier $pkgdir/usr/bin/govpn-verifier
+ cd $srcdir/$pkgname-${pkgver}
+ make DESTDIR=$pkgdir PREFIX=/usr install-strip
+ rm -fr $pkgdir/usr/share/doc/$pkgname
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
- mkdir -p $pkgdir/usr/share/$pkgname/
- install -Dm755 utils/newclient.sh $pkgdir/usr/share/$pkgname/newclient.sh
- install -Dm755 utils/storekey.sh $pkgdir/usr/share/$pkgname/storekey.sh
}