void-packages/srcpkgs/spice/template

46 lines
1.5 KiB
Bash

# Template file for 'spice'
pkgname=spice
version=0.15.0
revision=1
build_style=gnu-configure
configure_args="--disable-tunnel --disable-opengl --enable-smartcard
--with-sasl --disable-static --enable-xinerama --disable-celt051"
hostmakedepends="pkg-config python"
makedepends="spice-protocol libjpeg-turbo-devel pixman-devel
openssl-devel opus-devel alsa-lib-devel libXfixes-devel libXrender-devel
libXrandr-devel libsasl-devel libXinerama-devel libglib-devel libcacard-devel
nss-devel"
checkdepends="glib-networking"
short_desc="Implements the SPICE protocol"
maintainer="Anachron <gith@cron.world>"
license="LGPL-2.1-or-later"
homepage="http://www.spice-space.org"
distfiles="https://www.spice-space.org/download/releases/spice-server/spice-${version}.tar.bz2"
checksum=b320cf8f4bd2852750acb703c15b72856027e5a8554f8217dfbb3cc09deba0f5
if [ "$XBPS_TARGET_ENDIAN" != "le" ]; then
broken="SPICE server only works on little endian architectures"
fi
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
# tests depend on odd behaviour of glibc
# in this case being that calling getnameinfo on an AF_LOCAL socket
# will return successfully, with either hostname or "localhost"
# musl errors out instead, thus failing the tests
make_check=no
fi
post_extract() {
sed -i 's/armv6hl/arm/g' configure # "detects" cpu from triplet.
}
spice-devel_package() {
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove usr/lib/*.so
}
}