summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authormrxx2021-01-12 15:28:20 +0100
committermrxx2021-01-12 15:28:20 +0100
commit11d184a326a7b08050408736685018089f1c0337 (patch)
treed6dab24e01964b3180fd5a6c7e5d0dae1aa83975 /PKGBUILD
downloadaur-nat-tcp-test-git.tar.gz
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..0318326ac0b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: mrxx <mrxx at cyberhome dot at>
+
+pkgname=nat-tcp-test-git
+_pkgname=NAT-TCP-test
+pkgver=r25.cbb1eb5
+pkgrel=1
+pkgdesc="TCP established connection idle-timeout tests for NAT implementations"
+arch=('x86_64' 'i686' 'aarch64')
+url="https://github.com/AndersTrier/$_pkgname"
+license=('unknown')
+makedepends=('git')
+source=("git+$url")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "$_pkgname"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "$srcdir/$_pkgname"
+ make
+}
+
+package() {
+ install -d "$pkgdir"/usr/bin
+ for file in tcp-send-test tcp-recv-test tcp-keepalive-test; do
+ install -Dm755 "$srcdir/$_pkgname/$file" "$pkgdir/usr/bin/$file"
+ done
+}
+