Date: Saturday, August 22, 2015 @ 13:36:37
  Author: fyan
Revision: 138633

addpkg: tuntox 0.0.4-1

Added:
  tuntox/
  tuntox/repos/
  tuntox/trunk/
  tuntox/trunk/PKGBUILD
  tuntox/trunk/shared-build.patch

--------------------+
 PKGBUILD           |   32 ++++++++++++++++++++++++++++++++
 shared-build.patch |   22 ++++++++++++++++++++++
 2 files changed, 54 insertions(+)

Added: tuntox/trunk/PKGBUILD
===================================================================
--- tuntox/trunk/PKGBUILD                               (rev 0)
+++ tuntox/trunk/PKGBUILD       2015-08-22 11:36:37 UTC (rev 138633)
@@ -0,0 +1,32 @@
+# $Id$
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=tuntox
+pkgver=0.0.4
+pkgrel=1
+pkgdesc='Tunnel TCP connections over the Tox protocol'
+arch=('i686' 'x86_64')
+url='http://tuntox.pl/'
+license=('GPL3')
+depends=('toxcore')
+makedepends=('git' 'cscope')
+source=("git+https://github.com/gjedeer/tuntox.git#tag=$pkgver";
+        shared-build.patch)
+sha512sums=('SKIP'
+            
'e5bbcdf14103c1d4cdd6bb4e142c14bd1ebc9130b8fa50cd5f50f99dbf54b1796f31adc78c21378d129e5c7ea9986d59e63ddb423bf3473c34f635f59dc19d8c')
+
+prepare() {
+  cd $pkgname
+  patch -p1 -i ../shared-build.patch
+}
+
+build() {
+  cd $pkgname
+  make
+}
+
+package() {
+  cd $pkgname
+  install -Dm755 tuntox "$pkgdir/usr/bin/tuntox"
+  install -Dm644 scripts/tuntox.service 
"$pkgdir/usr/lib/systemd/system/tuntox.service"
+}


Property changes on: tuntox/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Added: tuntox/trunk/shared-build.patch
===================================================================
--- tuntox/trunk/shared-build.patch                             (rev 0)
+++ tuntox/trunk/shared-build.patch     2015-08-22 11:36:37 UTC (rev 138633)
@@ -0,0 +1,22 @@
+diff --git a/Makefile b/Makefile
+index 5e19d0a..96c6ff3 100644
+--- a/Makefile
++++ b/Makefile
+@@ -3,7 +3,7 @@ DEPS=libtoxcore
+ CC=gcc
+ CFLAGS=-g #-std=c99
+ CFLAGS += $(shell pkg-config --cflags $(DEPS))
+-LDFLAGS=-g -pthread -lm -static -lrt
++LDFLAGS=-g -pthread -lm -lrt
+ LDFLAGS += $(shell pkg-config --libs $(DEPS))
+ OBJECTS=$(SOURCES:.c=.o)
+ INCLUDES = $(wildcard *.h)
+@@ -19,7 +19,7 @@ gitversion.c: gitversion.h
+       $(CC) $(CFLAGS) $< -c -o $@
+ 
+ tuntox: $(OBJECTS) $(INCLUDES)
+-      $(CC) -o $@ $(OBJECTS) -ltoxcore -lpthread $(LDFLAGS) 
/usr/local/lib/libsodium.a /usr/local/lib/libtoxcore.a
++      $(CC) -o $@ $(OBJECTS) -ltoxcore -lpthread $(LDFLAGS) -lsodium
+ 
+ cscope.out:
+       cscope -bv ./*.[ch] 

Reply via email to