[arch-commits] Commit in tuntox/repos (2 files)
Jiachen Yang
farseerfc at archlinux.org
Fri May 8 09:00:42 UTC 2020
Date: Friday, May 8, 2020 @ 09:00:41
Author: farseerfc
Revision: 625571
archrelease: copy trunk to community-testing-x86_64
Added:
tuntox/repos/community-testing-x86_64/
tuntox/repos/community-testing-x86_64/PKGBUILD
(from rev 625569, tuntox/trunk/PKGBUILD)
----------+
PKGBUILD | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 53 insertions(+)
Copied: tuntox/repos/community-testing-x86_64/PKGBUILD (from rev 625569, tuntox/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2020-05-08 09:00:41 UTC (rev 625571)
@@ -0,0 +1,53 @@
+# Maintainer: Jiachen Yang <farseerfc at gmail.com>
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=tuntox
+pkgver=0.0.9
+_commit=ef49516b967e1b3a1af777725554e5081ee0c688
+pkgrel=2
+pkgdesc='Tunnel TCP connections over the Tox protocol'
+arch=('x86_64')
+url='https://github.com/gjedeer/tuntox'
+license=('GPL3')
+depends=('toxcore' 'libevent')
+makedepends=('cscope' 'git')
+
+## Using git commit to fix toxcore 0.2.x compatibility
+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')
+validpgpkeys=('11C1B15A5D5DD662E469928AEBDA6B974ED3D2B7') # GDR!_ <gdr at gdr.name>
+
+prepare() {
+ #cd $pkgname-$pkgver
+ cd $pkgname
+ #sed -i "s|DEPS=libsodium toxcore|DEPS=libsodium libtoxcore|" Makefile
+ sed -i "/^CFLAGS=/d" Makefile # use CFLAGS from makepkg
+ sed -i "/^LDFLAGS=/d" Makefile # use LDFLAGS from makepkg
+ sed -i "s/^DSO_LDFLAGS=/DSO_LDFLAGS=$LDFLAGS/" Makefile # use DSO_LDFLAGS from makepkg
+ cat Makefile
+}
+
+build() {
+ #cd $pkgname-$pkgver
+ cd $pkgname
+
+ # 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
+ cd $pkgname
+ install -Dm755 tuntox "$pkgdir/usr/bin/tuntox"
+ install -Dm755 scripts/tokssh "$pkgdir/usr/bin/tokssh"
+ install -Dm644 scripts/tuntox.service "$pkgdir/usr/lib/systemd/system/tuntox.service"
+}
More information about the arch-commits
mailing list