summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorSo Wieso2016-11-01 22:20:59 +0900
committerSo Wieso2016-11-01 22:20:59 +0900
commitf677654dda28f837d11f8f4e5701de7c9a36e001 (patch)
tree4982a7682903e0fb43a6d53e70ff4d58f1490396 /PKGBUILD
downloadaur-f677654dda28f837d11f8f4e5701de7c9a36e001.tar.gz
Initial commit
Diffstat (limited to 'PKGBUILD')
-rwxr-xr-xPKGBUILD27
1 files changed, 27 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100755
index 00000000000..ae5ab7debdb
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,27 @@
+# maintainer: so wieso <sowieso@dukun.de>
+pkgname=stuntman
+pkgver=1.2.1
+pkgrel=1
+pkgdesc="STUN server and client"
+url="http://www.stunprotocol.org/"
+license=("Apache")
+arch=("i686" "x86_64")
+depends=()
+optdepends=()
+makedepends=("boost-libs")
+conflicts=("stuntman-git")
+source=("https://github.com/jselbie/stunserver/archive/version1.2.1.zip")
+sha256sums=("59c35de587699f4e8959b19d5d26173d27a9f4affe2b07b793dd95ac52508c53")
+
+build() {
+ cd "${srcdir}/stunserver-version${pkgver}"
+ make
+}
+
+package() {
+ cd "${srcdir}/stunserver-version${pkgver}"
+ install -D -m0755 -t "$pkgdir/usr/bin/" stun{client,server}
+ install -D -m0644 -t "$pkgdir/usr/share/doc/${pkgname}" HISTORY README
+ install -D -m0644 <(./stunclient --help | gzip) "$pkgdir/usr/share/man/man1/stunclient.1.gz"
+ install -D -m0644 <(./stunserver --help | gzip) "$pkgdir/usr/share/man/man1/stunserver.1.gz"
+}