summaryrefslogtreecommitdiff
path: root/opt/wayvnc/MAKEPKG
diff options
context:
space:
mode:
authorrawnix ports <ports@rawnix.org>2026-09-26 18:19:05 +0000
committerrawnix ports <ports@rawnix.org>2026-09-26 18:19:05 +0000
commitc82e88dd00d1b0b7fcfb4e5628d99611388cef6f (patch)
tree56d864b5a5c6c145edd96178ae219a8f90e191a6 /opt/wayvnc/MAKEPKG
downloadports-c82e88dd00d1b0b7fcfb4e5628d99611388cef6f.tar.gz
sync 2026-09-26 18:19 UTC
1672 files changed, 151396 insertions(+)
Diffstat (limited to 'opt/wayvnc/MAKEPKG')
-rw-r--r--opt/wayvnc/MAKEPKG63
1 files changed, 63 insertions, 0 deletions
diff --git a/opt/wayvnc/MAKEPKG b/opt/wayvnc/MAKEPKG
new file mode 100644
index 0000000..0ece096
--- /dev/null
+++ b/opt/wayvnc/MAKEPKG
@@ -0,0 +1,63 @@
+#!/bin/mkpkg
+# *** Flux Linux ***
+# description: VNC server for wlroots-based Wayland compositors
+# url: https://github.com/any1/wayvnc
+
+name=wayvnc
+version=0.10.1
+release=1
+_neatvnc=1.0.0
+_aml=1.0.0
+depends=(libxkbcommon pixman libdrm mesa jansson wayland)
+makedeps=(meson wayland-protocols bsd-headers)
+source=(https://github.com/any1/wayvnc/archive/v$version/$name-$version.tar.gz
+ https://github.com/any1/neatvnc/archive/v$_neatvnc/neatvnc-$_neatvnc.tar.gz
+ https://github.com/any1/aml/archive/v$_aml/aml-$_aml.tar.gz)
+
+sha256sums=(
+ "1dcb54f58d1637995bfb59c17709efca7833bae41f31b33eb47e608668a89d66"
+ "993dedc30e72981650770c04438e9759537e4677010e2dab5e792c39afe74601"
+ "b2b8f743213af39f40e8bc611147d69e2ea9e010b9b19cb65246582338f28d96"
+)
+
+build() {
+ cd $name-$version
+
+ # Set up neatvnc as subproject
+ mkdir -p subprojects
+ ln -sf ../../neatvnc-$_neatvnc subprojects/neatvnc
+
+ # Set up aml as subproject for both wayvnc and neatvnc
+ ln -sf ../../aml-$_aml subprojects/aml
+ mkdir -p subprojects/neatvnc/subprojects
+ ln -sf ../../../aml-$_aml subprojects/neatvnc/subprojects/aml
+
+ meson setup build \
+ --prefix=/usr \
+ --libdir=/usr/lib \
+ -Dbuildtype=release \
+ -Dman-pages=disabled \
+ -Dpam=disabled \
+ -Dscreencopy-dmabuf=enabled \
+ -Dneatvnc:tls=disabled \
+ -Dneatvnc:jpeg=disabled \
+ -Dneatvnc:h264=disabled \
+ -Dneatvnc:nettle=disabled \
+ -Dneatvnc:examples=false
+
+ meson compile -C build -j$(nproc)
+ DESTDIR=$PKG meson install -C build --no-rebuild
+
+ # Remove subproject headers and pkg-config files
+ rm -rf $PKG/usr/include/aml.h \
+ $PKG/usr/include/neatvnc.h \
+ $PKG/usr/lib/pkgconfig/aml.pc \
+ $PKG/usr/lib/pkgconfig/neatvnc.pc
+}
+
+signify() {
+ untrusted comment: public key
+ RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3
+}
+
+# vim: filetype=sh