# Contributor: Stuart Cardall # Maintainer: Stuart Cardall pkgname=xpra pkgver=1.0.3 pkgrel=2 pkgdesc="Xpra is 'screen for X' & allows you to run X programs, usually on a remote host over SSH or encrypted tcp." url="http://xpra.org" arch="all" license="GPLv2+" depends="py-gobject py-gtk py-imaging xf86-video-dummy xvfb setxkbmap xorg-server py-numpy py-pillow py-gtkglext py-lz4 py-rencode py-opencl py2-xxhash" makedepends="python2-dev cython-dev libx11-dev libxtst-dev libxcomposite-dev libxdamage-dev libxrandr-dev py-gobject-dev py-gtk-dev libxkbfile-dev gtk+2.0-dev x264-dev x265-dev libvpx-dev ffmpeg-dev libwebp-dev cython linux-headers" subpackages="$pkgname-doc $pkgname-tests::noarch $pkgname-webclient::noarch" source="http://xpra.org/src/$pkgname-$pkgver.tar.xz" builddir="$srcdir/$pkgname-$pkgver" build() { cd "$builddir" # https://www.xpra.org/trac/ticket/1080 CFLAGS="$CFLAGS -fno-strict-aliasing" python2 setup.py build \ --with-csc_opencl \ --with-bundle_tests \ || return 1 } package() { cd "$builddir" python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1 # fixes Error relocating /usr/lib/xorg/modules/drivers/dummy_drv.so: fbPictureInit: symbol not found printf '\nSection "Module"\n Load\t"fb"\nEndSection' >> $pkgdir/etc/xpra/xorg.conf # https://bugs.alpinelinux.org/issues/5478 } tests() { cd "$builddir" pkgdesc="Xpra test suite" mkdir -p "$subpkgdir"/usr/share/xpra cp -rf tests "$subpkgdir"/usr/share/xpra/ } webclient() { cd "$pkgdir" pkgdesc="Xpra websockets client" mkdir -p "$subpkgdir"/usr/share/xpra cp -rf usr/share/xpra/www "$subpkgdir"/usr/share/xpra/ } sha512sums="3b6371d478147a5d932df1c8428e9132831fcbf17e51f48fb384c30548efee9758c94a6781c255b5fe211c5040993f30b054aa33f3fced85484fcc9d2ca009a1 xpra-1.0.3.tar.xz"