aboutsummaryrefslogblamecommitdiffstats
path: root/community/xpra/APKBUILD
blob: 6c8a9ea6bf1ea94b278ac25ad7fd9a6ff6635c8e (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                           
            
        
                                                                                                                   
                      
                        
                        
                          
                                                                                                    
                                                                                            
                                                                              

                                                                                               
                                                                                            

                                                     
                                   

         
                      
 
                                               
                                             
                                
                                   


           
                      
 
                                                               

                                                                                                            
                                                  
                                                                                               

 
         
                                 

                      



                                                 
             
                                        

                    



                                                              
                                                                                                                                                                
# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=xpra
pkgver=2.4.2
pkgrel=3
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"
# !armhf: fails to build
arch="all !armhf !armv7"
license="GPL-2.0-or-later"
depends="py-gobject py-gtk py-gtkglext py-imaging py-opencl>=2018.1.1-r1 py-rencode py2-cryptography
	py2-lz4 py2-numpy py2-pillow py2-xxhash setxkbmap xf86-video-dummy xorg-server xvfb"
makedepends="cython ffmpeg-dev gstreamer-dev gtk+2.0-dev libvpx-dev libx11-dev
	libxcomposite-dev libxdamage-dev libxkbfile-dev libxrandr-dev libxtst-dev linux-headers
	py-gobject-dev py-gtk-dev py2-yuicompressor python2-dev x264-dev x265-dev"
subpackages="$pkgname-openrc $pkgname-doc $pkgname-tests::noarch $pkgname-webclient::noarch"
options="!check"
source="https://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-bundle_tests
}

package() {
	cd "$builddir"

	python2 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
}

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="a450691c21dbe58e7a8ac3b1ba6bb91021d9b1659180e97a18fa02f1f1af8d89b4b13cdfcadc95d922fa301416107d4b0883b0db76967ad8c464d183c60d6a24  xpra-2.4.2.tar.xz"