summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorjasch2019-05-22 08:58:15 +0200
committerjasch2019-05-22 08:58:15 +0200
commitc0503c08e2920b165eb516e294bd6be0c8510574 (patch)
tree24fbcb74939acb3734834604c6d9599a7dcf8efb
downloadaur-c0503c08e2920b165eb516e294bd6be0c8510574.tar.gz
Add initial dev release of soundtunnel v0.0.10
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD54
-rw-r--r--soundtunnel-0.0.10.tar.gzbin0 -> 6963 bytes
-rw-r--r--soundtunnel.install26
4 files changed, 98 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..6429742521b
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = soundtunnel
+ pkgdesc = IN DEVELOPMENT! A tun device to communicate via sounds.
+ pkgver = 0.0.10
+ pkgrel = 2
+ url = https://example.com/
+ install = soundtunnel.install
+ arch = x86_64
+ license = unknown
+ makedepends = gcc
+ makedepends = cmake
+ depends = quiet
+ depends = libconfig
+ depends = liquid-dsp
+ source = soundtunnel-0.0.10.tar.gz
+ sha256sums = 1c9ff8b2a648f2b59c15a9805115f88dfbbbe3656f9dcc81e866ada791005683
+
+pkgname = soundtunnel
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..1c3b4a85894
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,54 @@
+# Maintainer: jasch <jasch dot io at protonmail dot com>
+pkgname=soundtunnel
+pkgver=0.0.10
+pkgrel=2
+#epoch=
+pkgdesc="IN DEVELOPMENT! A tun device to communicate via sounds."
+arch=('x86_64')
+url="https://example.com/"
+license=('unknown')
+groups=()
+depends=('quiet' 'libconfig' 'liquid-dsp')
+makedepends=('gcc' 'cmake')
+checkdepends=()
+optdepends=()
+provides=()
+conflicts=()
+replaces=()
+backup=()
+options=()
+install=soundtunnel.install
+changelog=
+source=("$pkgname-$pkgver.tar.gz")
+ #"$pkgname-$pkgver.patch")
+noextract=()
+sha256sums=(
+ '1c9ff8b2a648f2b59c15a9805115f88dfbbbe3656f9dcc81e866ada791005683')
+ #'04c0a79a2af286f8fde774b37c3d869f825005f15a39d54d2bc65a1ef2d4e3b8'
+#)
+#md5sums=('SKIP' 'SKIP')
+validpgpkeys=()
+
+prepare() {
+ cd "$pkgname-$pkgver"
+ #patch --forward --strip=1 --input="${srcdir}/$pkgname-$pkgver.patch"
+ #patch -p1 -i "$srcdir/$pkgname-$pkgver.patch"
+}
+
+build() {
+ cd "$pkgname-$pkgver"
+ #./configure --prefix=/usr
+ cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr CMakeLists.txt
+ make
+}
+
+#check() {
+ #cd "$pkgname-$pkgver"
+ #make -k check
+#}
+
+package() {
+ cd "$pkgname-$pkgver"
+ make DESTDIR="$pkgdir/" install
+}
+
diff --git a/soundtunnel-0.0.10.tar.gz b/soundtunnel-0.0.10.tar.gz
new file mode 100644
index 00000000000..a2d017db5da
--- /dev/null
+++ b/soundtunnel-0.0.10.tar.gz
Binary files differ
diff --git a/soundtunnel.install b/soundtunnel.install
new file mode 100644
index 00000000000..168373ebd70
--- /dev/null
+++ b/soundtunnel.install
@@ -0,0 +1,26 @@
+post_install() {
+ if ! getent group soundtunnel >/dev/null; then
+ groupadd --system soundtunnel
+ fi
+
+ if ! getent passwd soundtunnel >/dev/null; then
+ useradd --system --create-home --gid soundtunnel --groups audio --home-dir /var/lib/soundtunnel --shell /usr/bin/nologin soundtunnel
+ fi
+
+ chown soundtunnel:soundtunnel /var/lib/soundtunnel
+ chmod 0750 /var/lib/soundtunnel
+
+# setcap cap_net_admin+eip /usr/bin/soundtunnel
+
+ systemctl daemon-reload
+}
+
+pre_remove() {
+ systemctl stop soundtunnel.service
+ userdel soundtunnel
+# groupdel soundtunnel
+}
+
+post_remove() {
+ systemctl daemon-reload
+}