# Contributor: Stuart Cardall # Maintainer: Stuart Cardall pkgname=xpra pkgver=1.0.1 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="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" 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/ } md5sums="747e8340b69e41310b513b1ced818c64 xpra-1.0.1.tar.xz" sha256sums="415eea94dc7efabb1fd2e4eaa8a7665fefe65ed91be1cf31605394fb6d48ec17 xpra-1.0.1.tar.xz" sha512sums="00b512c4a468043846f2f867fdf02d589069634302fda0a3da2df54cd3b49f592902c951edd0f367e32b372ee542f66330c4c254156337e1da0b36841199dcd3 xpra-1.0.1.tar.xz"