summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD31
2 files changed, 49 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..8be5ac1ea1b
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = udptunnel-git
+ pkgdesc = Tunnel TCP via UDP
+ pkgver = r8.546bcbb
+ pkgrel = 1
+ url = https://github.com/antonbutanaev/udptunnel
+ arch = i686
+ arch = x86_64
+ arch = armv6h
+ license = GPL3
+ makedepends = git
+ makedepends = cmake
+ depends = glibc
+ provides = udptunnel
+ source = git+https://github.com/antonbutanaev/udptunnel.git
+ sha256sums = SKIP
+
+pkgname = udptunnel-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..5ad8e68f598
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: antonbutanaev@gmail.com
+pkgname=udptunnel-git
+pkgver=r8.546bcbb
+pkgrel=1
+pkgdesc='Tunnel TCP via UDP'
+arch=('i686' 'x86_64' 'armv6h')
+url='https://github.com/antonbutanaev/udptunnel'
+license=('GPL3')
+depends=('glibc')
+makedepends=('git' 'cmake')
+provides=('udptunnel')
+source=('git+https://github.com/antonbutanaev/udptunnel.git')
+sha256sums=('SKIP')
+
+pkgver() {
+ cd udptunnel
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ mkdir -p udptunnel/build
+ cd udptunnel/build
+ cmake -DCMAKE_BUILD_TYPE=Release ..
+ make
+}
+
+package() {
+ cd udptunnel/build
+ make DESTDIR="$pkgdir/" install
+}
+