[arch-commits] Commit in tuntox/trunk (PKGBUILD)

Jiachen Yang farseerfc at archlinux.org
Sun Jan 8 07:50:41 UTC 2017


    Date: Sunday, January 8, 2017 @ 07:50:40
  Author: farseerfc
Revision: 206079

upgpkg: tuntox 0.0.6-1

tuntox 0.0.6

Modified:
  tuntox/trunk/PKGBUILD

----------+
 PKGBUILD |   30 ++++++++++++++++++++----------
 1 file changed, 20 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-01-08 06:26:48 UTC (rev 206078)
+++ PKGBUILD	2017-01-08 07:50:40 UTC (rev 206079)
@@ -3,33 +3,43 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 
 pkgname=tuntox
-pkgver=0.0.5.6d74a7a
-_commit=6d74a7a2da9690ca56b3543a240d53b6b3915bf3
-pkgrel=3
+pkgver=0.0.6
+_commit=fad23001af27f1cd380f7d05270ddcc04244f507
+pkgrel=1
 pkgdesc='Tunnel TCP connections over the Tox protocol'
 arch=('i686' 'x86_64')
 url='https://github.com/gjedeer/tuntox'
 license=('GPL3')
 depends=('toxcore')
-makedepends=('git' 'cscope')
-source=("git+https://github.com/gjedeer/tuntox.git#commit=$_commit"  #tag=$pkgver
+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=('SKIP')
 
+sha512sums=('57893516d2186f9830784f23f6312746ea6c64e0c75c84fbb3f1453da6d7c25f29cb9a848c0160b0d93dc0098d46cd923cf13b5bf2c3142c4cc05b0b14a73872'
+            'SKIP')
+validpgpkeys=('11C1B15A5D5DD662E469928AEBDA6B974ED3D2B7')  # GDR!_ <gdr at gdr.name>
+
 prepare() {
-  cd $pkgname
+  cd $pkgname-$pkgver
   sed -i "s|DEPS=libsodium toxcore|DEPS=libsodium libtoxcore|" Makefile
 }
 
 build() {
-  cd $pkgname
+  cd $pkgname-$pkgver
 
-  make gitversion.h tuntox_nostatic  # use dynamic linking
+  # 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
+  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