#!/bin/mkpkg
# description: SPICE server library
# url: https://www.spice-space.org

name=spice
version=0.16.0
release=1
depends=(glib spice-protocol libjpeg-turbo pixman opus lz4 libressl zlib)
makedeps=(meson samurai pkgconf python3 py-pyparsing)
source=(https://www.spice-space.org/download/releases/spice-server/$name-$version.tar.bz2)
sha256sums=(
    "0a6ec9528f05371261bbb2d46ff35e7b5c45ff89bb975a99af95a5f20ff4717d"
)

build() {
    cd $name-$version
    meson setup build \
        --prefix=/usr \
        --buildtype=release \
        --wrap-mode=nodownload \
        -Dsasl=false \
        -Dsmartcard=disabled \
        -Dlz4=true \
        -Dopus=enabled \
        -Dgstreamer=no
    meson compile -C build
    meson install -C build --destdir $PKG
}

signify() {
    untrusted comment: public key
    RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3
}

# vim: filetype=sh
