summaryrefslogtreecommitdiff
path: root/opt/wayvnc/MAKEPKG
blob: 0ece0968cd643a9e328d6f90a97c69520fc34bb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
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