40 lines
1.3 KiB
Bash
40 lines
1.3 KiB
Bash
# Template file for 'xpra'
|
|
pkgname=xpra
|
|
version=2.5.1
|
|
revision=1
|
|
build_style=python2-module
|
|
pycompile_module="xpra"
|
|
hostmakedepends="pkg-config python-Cython"
|
|
makedepends="ffmpeg-devel libXcomposite-devel libXrandr-devel libXtst-devel
|
|
libvpx-devel libwebp-devel libxkbfile-devel pygtk-devel x264-devel"
|
|
depends="cups pygtk python-Pillow python-cups python-dbus python-lz4
|
|
python-paramiko python-rencode xauth xf86-video-dummy xorg-server-xvfb"
|
|
short_desc="Like screen(1) for X"
|
|
maintainer="Leah Neukirchen <leah@vuxu.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=95062fbb8894a8dcca983ce96066e8e7dd92722b7c5928e1a5a24d5a8f5e8392
|
|
conf_files="
|
|
/etc/xpra/xpra.conf
|
|
/etc/xpra/xorg.conf
|
|
/etc/xpra/conf.d/*"
|
|
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
depends+=" python-PyOpenGL-accelerate"
|
|
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
|
|
}
|