#!/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