diff --git a/common/shlibs b/common/shlibs index df7ae661980e51..988c21010253dd 100644 --- a/common/shlibs +++ b/common/shlibs @@ -4694,4 +4694,5 @@ libcpptrace.so.1 cpptrace-1.0.4_1 libcgif.so.0 cgif-0.5.3_1 libdsk.so.5 libdsk-1.5.22_1 libblend2d.so libblend2d-0.21.2_1 +libjuice.so.1 libjuice-1.7.6_1 libqjs.so.0 libquickjs-ng-0.18.0_1 diff --git a/srcpkgs/libjuice-devel b/srcpkgs/libjuice-devel new file mode 120000 index 00000000000000..dc327954fbf732 --- /dev/null +++ b/srcpkgs/libjuice-devel @@ -0,0 +1 @@ +libjuice \ No newline at end of file diff --git a/srcpkgs/libjuice/template b/srcpkgs/libjuice/template new file mode 100644 index 00000000000000..9463e4c499e04f --- /dev/null +++ b/srcpkgs/libjuice/template @@ -0,0 +1,25 @@ +# Template file for 'libjuice' +pkgname=libjuice +version=1.7.6 +revision=1 +build_style=cmake +short_desc="UDP Interactive Connectivity Establishment library" +maintainer="ii8 " +license="MPL-2.0" +homepage="https://github.com/paullouisageneau/libjuice" +distfiles="https://github.com/paullouisageneau/libjuice/archive/refs/tags/v${version}.tar.gz" +checksum=eeff67ebd5c163e219d93dc1957ec0c60bf9d9e3df5fcf4e7560fdd71d4db062 + +do_check() { + ./build/tests +} + +libjuice-devel_package() { + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + vmove usr/include + vmove usr/lib/cmake + vmove usr/lib/*.so + } +} diff --git a/srcpkgs/violet/files/violet/run b/srcpkgs/violet/files/violet/run new file mode 100644 index 00000000000000..6c96d27e65af4c --- /dev/null +++ b/srcpkgs/violet/files/violet/run @@ -0,0 +1,2 @@ +#!/bin/sh +exec chpst -u _violet:_violet violet -f /etc/violet/violet.conf diff --git a/srcpkgs/violet/template b/srcpkgs/violet/template new file mode 100644 index 00000000000000..eb225c8b0131f6 --- /dev/null +++ b/srcpkgs/violet/template @@ -0,0 +1,21 @@ +# Template file for 'violet' +pkgname=violet +version=0.5.4 +revision=1 +build_style=cmake +configure_args="-DUSE_SYSTEM_JUICE=ON" +makedepends="libjuice-devel" +short_desc="Lightweight STUN/TURN server" +maintainer="ii8 " +license="GPL-2.0-or-later" +homepage="https://github.com/paullouisageneau/violet" +distfiles="https://github.com/paullouisageneau/violet/archive/refs/tags/v${version}.tar.gz" +checksum=79323f84e547f3742d062f09da2d9a4315466767f9d5e8f66363445dccd30992 + +conf_files="/etc/violet/violet.conf" +system_accounts="_violet" + +post_install() { + vinstall example.conf 644 etc/violet violet.conf + vsv violet +}