# Contributor: Stuart Cardall # Maintainer: Stuart Cardall pkgname=xpra pkgver=3.0.5 pkgrel=0 pkgdesc="Xpra is 'screen for X' & allows you to run X programs, usually on a remote host over SSH or encrypted tcp" url="https://xpra.org" arch="all" license="GPL-2.0-or-later" depends=" py3-gobject3 py3-numpy py3-opengl py3-opengl-accelerate py3-rencode py3-lz4 py3-cryptography py3-dbus py3-openssl py3-brotli py3-pillow xf86-video-dummy xorg-server xvfb " makedepends=" x264-dev x265-dev ffmpeg-dev libvpx-dev libwebp-dev libpng-dev libjpeg-turbo-dev libogg-dev opus-dev libvorbis-dev libx11-dev libxrandr-dev libxtst-dev libxfixes-dev libxkbfile-dev libxcomposite-dev libxdamage-dev gtk+3.0-dev glib-dev py3-gobject3-dev py-cairo-dev lz4-dev python3-dev cython yasm nasm gmp-dev mpfr-dev py3-yuicompressor " subpackages="$pkgname-openrc $pkgname-doc $pkgname-tests::noarch $pkgname-webclient::noarch" options="!check" source="https://xpra.org/src/xpra-$pkgver.tar.xz" build() { # https://www.xpra.org/trac/ticket/1080 CFLAGS="$CFLAGS -fno-strict-aliasing" python3 setup.py build \ --with-bundle_tests } package() { python3 setup.py install --prefix=/usr --root="$pkgdir" # Fixes Error relocating /usr/lib/xorg/modules/drivers/dummy_drv.so: fbPictureInit: symbol not found # https://bugs.alpinelinux.org/issues/5478 printf '\nSection "Module"\n Load\t"fb"\nEndSection\n' >> "$pkgdir"/etc/xpra/xorg.conf rm -rf "$pkgdir"/usr/lib/tmpfiles.d/xpra.conf rm -rf "$pkgdir"/usr/lib/sysusers.d/xpra.conf } tests() { pkgdesc="Xpra test suite" cd "$builddir" mkdir -p "$subpkgdir"/usr/share/xpra cp -rf tests "$subpkgdir"/usr/share/xpra/ } webclient() { pkgdesc="Xpra websockets client" cd "$pkgdir" mkdir -p "$subpkgdir"/usr/share/xpra cp -rf usr/share/xpra/www "$subpkgdir"/usr/share/xpra/ } sha512sums="3dbc122ebc8c4aa67154acfe92668ac364d8469022b03e28946d763e4d396f8c707690b2a4dbf07b55545259a53b46c9dd94e6e40131289ccc3dce6a88107681 xpra-3.0.5.tar.xz"