void-packages/srcpkgs/xpra/template
2020-02-25 20:06:50 +01:00

47 lines
1.5 KiB
Bash

# Template file for 'xpra'
pkgname=xpra
version=3.0.6
revision=1
build_style=python3-module
hostmakedepends="pkg-config python3-Cython"
makedepends="ffmpeg-devel libXcomposite-devel libXrandr-devel libXtst-devel
libvpx-devel libwebp-devel libxkbfile-devel python3-gobject-devel x264-devel
gtk+3-devel"
depends="cups python3-gobject python3-Pillow python3-cups python3-dbus
python3-lz4 python3-paramiko python3-rencode xauth xf86-video-dummy
xorg-server-xvfb"
short_desc="Like screen(1) for X"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://xpra.org/"
changelog="https://xpra.org/svn/Xpra/trunk/debian/changelog"
distfiles="https://xpra.org/src/${pkgname}-${version}.tar.xz"
checksum=0854503added465d745c7b079bd4784c42926c9e768a056fc8df2c78e3285557
conf_files="
/etc/xpra/xpra.conf
/etc/xpra/xorg.conf
/etc/xpra/conf.d/*"
system_groups="xpra"
if [ -z "$CROSS_BUILD" ]; then
depends+=" python3-PyOpenGL-accelerate"
case "$XBPS_TARGET_MACHINE" in
ppc64*) depends+=" libopencv-python3";;
ppc*) ;;
*) depends+=" libopencv-python3";;
esac
fi
post_extract() {
sed -i 's/-Werror/-Wno-error/g' setup.py # ugh
sed -i "s/sysconfig.get_config_var('CFLAGS')/sysconfig.get_config_var('BUILD_CFLAGS')/" setup.py
}
post_install() {
sed -i "s:${DESTDIR/\/\//\/}::" ${DESTDIR}/etc/xpra/conf.d/55_server_x11.conf
rm -rf ${DESTDIR}/etc/init.d
vmkdir usr/share/X11/xorg.conf.d
mv ${DESTDIR}/etc/X11/xorg.conf.d/* ${DESTDIR}/usr/share/X11/xorg.conf.d
}