[arch-commits] Commit in tuntox/repos (6 files)

Felix Yan fyan at archlinux.org
Sat Aug 22 11:37:10 UTC 2015


    Date: Saturday, August 22, 2015 @ 13:37:10
  Author: fyan
Revision: 138634

archrelease: copy trunk to community-i686, community-x86_64

Added:
  tuntox/repos/community-i686/
  tuntox/repos/community-i686/PKGBUILD
    (from rev 138633, tuntox/trunk/PKGBUILD)
  tuntox/repos/community-i686/shared-build.patch
    (from rev 138633, tuntox/trunk/shared-build.patch)
  tuntox/repos/community-x86_64/
  tuntox/repos/community-x86_64/PKGBUILD
    (from rev 138633, tuntox/trunk/PKGBUILD)
  tuntox/repos/community-x86_64/shared-build.patch
    (from rev 138633, tuntox/trunk/shared-build.patch)

-------------------------------------+
 community-i686/PKGBUILD             |   32 ++++++++++++++++++++++++++++++++
 community-i686/shared-build.patch   |   22 ++++++++++++++++++++++
 community-x86_64/PKGBUILD           |   32 ++++++++++++++++++++++++++++++++
 community-x86_64/shared-build.patch |   22 ++++++++++++++++++++++
 4 files changed, 108 insertions(+)

Copied: tuntox/repos/community-i686/PKGBUILD (from rev 138633, tuntox/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD	                        (rev 0)
+++ community-i686/PKGBUILD	2015-08-22 11:37:10 UTC (rev 138634)
@@ -0,0 +1,32 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+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"
+}

Copied: tuntox/repos/community-i686/shared-build.patch (from rev 138633, tuntox/trunk/shared-build.patch)
===================================================================
--- community-i686/shared-build.patch	                        (rev 0)
+++ community-i686/shared-build.patch	2015-08-22 11:37:10 UTC (rev 138634)
@@ -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] 

Copied: tuntox/repos/community-x86_64/PKGBUILD (from rev 138633, tuntox/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2015-08-22 11:37:10 UTC (rev 138634)
@@ -0,0 +1,32 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+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"
+}

Copied: tuntox/repos/community-x86_64/shared-build.patch (from rev 138633, tuntox/trunk/shared-build.patch)
===================================================================
--- community-x86_64/shared-build.patch	                        (rev 0)
+++ community-x86_64/shared-build.patch	2015-08-22 11:37:10 UTC (rev 138634)
@@ -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] 



More information about the arch-commits mailing list