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

Jiachen Yang farseerfc at archlinux.org
Sat Jan 21 07:50:58 UTC 2017


    Date: Saturday, January 21, 2017 @ 07:50:58
  Author: farseerfc
Revision: 208199

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

Added:
  tuntox/repos/community-testing-i686/
  tuntox/repos/community-testing-i686/PKGBUILD
    (from rev 208198, tuntox/trunk/PKGBUILD)
  tuntox/repos/community-testing-x86_64/
  tuntox/repos/community-testing-x86_64/PKGBUILD
    (from rev 208198, tuntox/trunk/PKGBUILD)

-----------------------------------+
 community-testing-i686/PKGBUILD   |   45 ++++++++++++++++++++++++++++++++++++
 community-testing-x86_64/PKGBUILD |   45 ++++++++++++++++++++++++++++++++++++
 2 files changed, 90 insertions(+)

Copied: tuntox/repos/community-testing-i686/PKGBUILD (from rev 208198, tuntox/trunk/PKGBUILD)
===================================================================
--- community-testing-i686/PKGBUILD	                        (rev 0)
+++ community-testing-i686/PKGBUILD	2017-01-21 07:50:58 UTC (rev 208199)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Jiachen Yang <farseerfc at gmail.com>
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=tuntox
+pkgver=0.0.6
+_commit=fad23001af27f1cd380f7d05270ddcc04244f507
+pkgrel=2
+pkgdesc='Tunnel TCP connections over the Tox protocol'
+arch=('i686' 'x86_64')
+url='https://github.com/gjedeer/tuntox'
+license=('GPL3')
+depends=('toxcore')
+makedepends=('cscope')
+source=( # "git+https://github.com/gjedeer/tuntox.git#commit=$_commit"  #tag=$pkgver
+        "https://github.com/gjedeer/${pkgname}/archive/${pkgver}.tar.gz"
+        "https://github.com/gjedeer/${pkgname}/releases/download/${pkgver}/${pkgver}.tar.gz.asc"
+       )
+
+sha512sums=('57893516d2186f9830784f23f6312746ea6c64e0c75c84fbb3f1453da6d7c25f29cb9a848c0160b0d93dc0098d46cd923cf13b5bf2c3142c4cc05b0b14a73872'
+            'SKIP')
+validpgpkeys=('11C1B15A5D5DD662E469928AEBDA6B974ED3D2B7')  # GDR!_ <gdr at gdr.name>
+
+prepare() {
+  cd $pkgname-$pkgver
+  sed -i "s|DEPS=libsodium toxcore|DEPS=libsodium libtoxcore|" Makefile
+}
+
+build() {
+  cd $pkgname-$pkgver
+
+  # Makefile requires these, make it happy
+  # pending issue: https://github.com/gjedeer/tuntox/issues/35
+  mkdir -p .git
+  touch .git/HEAD .git/index
+  echo "#define GITVERSION \"${_commit}\"" > gitversion.h
+  make tuntox_nostatic  # use dynamic linking
+  mv tuntox_nostatic tuntox
+}
+
+package() {
+  cd $pkgname-$pkgver
+  install -Dm755 tuntox "$pkgdir/usr/bin/tuntox"
+  install -Dm644 scripts/tuntox.service "$pkgdir/usr/lib/systemd/system/tuntox.service"
+}

Copied: tuntox/repos/community-testing-x86_64/PKGBUILD (from rev 208198, tuntox/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2017-01-21 07:50:58 UTC (rev 208199)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Jiachen Yang <farseerfc at gmail.com>
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=tuntox
+pkgver=0.0.6
+_commit=fad23001af27f1cd380f7d05270ddcc04244f507
+pkgrel=2
+pkgdesc='Tunnel TCP connections over the Tox protocol'
+arch=('i686' 'x86_64')
+url='https://github.com/gjedeer/tuntox'
+license=('GPL3')
+depends=('toxcore')
+makedepends=('cscope')
+source=( # "git+https://github.com/gjedeer/tuntox.git#commit=$_commit"  #tag=$pkgver
+        "https://github.com/gjedeer/${pkgname}/archive/${pkgver}.tar.gz"
+        "https://github.com/gjedeer/${pkgname}/releases/download/${pkgver}/${pkgver}.tar.gz.asc"
+       )
+
+sha512sums=('57893516d2186f9830784f23f6312746ea6c64e0c75c84fbb3f1453da6d7c25f29cb9a848c0160b0d93dc0098d46cd923cf13b5bf2c3142c4cc05b0b14a73872'
+            'SKIP')
+validpgpkeys=('11C1B15A5D5DD662E469928AEBDA6B974ED3D2B7')  # GDR!_ <gdr at gdr.name>
+
+prepare() {
+  cd $pkgname-$pkgver
+  sed -i "s|DEPS=libsodium toxcore|DEPS=libsodium libtoxcore|" Makefile
+}
+
+build() {
+  cd $pkgname-$pkgver
+
+  # Makefile requires these, make it happy
+  # pending issue: https://github.com/gjedeer/tuntox/issues/35
+  mkdir -p .git
+  touch .git/HEAD .git/index
+  echo "#define GITVERSION \"${_commit}\"" > gitversion.h
+  make tuntox_nostatic  # use dynamic linking
+  mv tuntox_nostatic tuntox
+}
+
+package() {
+  cd $pkgname-$pkgver
+  install -Dm755 tuntox "$pkgdir/usr/bin/tuntox"
+  install -Dm644 scripts/tuntox.service "$pkgdir/usr/lib/systemd/system/tuntox.service"
+}



More information about the arch-commits mailing list