xpra: update to 4.0.3.

Closes #24390
This commit is contained in:
Andrew J. Hesford 2020-08-20 12:26:57 -04:00
parent 30bea4fff7
commit f7339c6d48

View file

@ -1,6 +1,6 @@
# Template file for 'xpra'
pkgname=xpra
version=3.0.7
version=4.0.3
revision=1
build_style=python3-module
hostmakedepends="pkg-config python3-Cython"
@ -10,17 +10,14 @@ makedepends="ffmpeg-devel libXcomposite-devel libXrandr-devel libXtst-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>"
short_desc="Persistent remote display server and client for X11 clients"
maintainer="Andrew J. Hesford <ajh@sideband.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=dc88ab4f7011f0f50f79f2cba97dd14503b336b451db2849f92bdf921b2b8c44
conf_files="
/etc/xpra/xpra.conf
/etc/xpra/xorg.conf
/etc/xpra/conf.d/*"
checksum=371f8002261db2113d566aecf12ab9c8e2d6460c2799278df2cb85e2ae6e4e15
conf_files="/etc/xpra/xpra.conf /etc/xpra/xorg.conf /etc/xpra/conf.d/*"
system_groups="xpra"
@ -33,15 +30,18 @@ if [ -z "$CROSS_BUILD" ]; then
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_patch() {
vsed -i setup.py -e 's/-Werror/-Wno-error/g' \
-e "/sysconfig.get_config_var/s/'CFLAGS'/'BUILD_CFLAGS'/"
}
post_install() {
sed -i "s:${DESTDIR/\/\//\/}::" ${DESTDIR}/etc/xpra/conf.d/55_server_x11.conf
vsed -e "s:${DESTDIR/\/\//\/}::" -i ${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
vmkdir usr/share/dbus-1/system.d
mv ${DESTDIR}/etc/dbus-1/system.d/xpra.conf ${DESTDIR}/usr/share/dbus-1/system.d
}