aboutsummaryrefslogblamecommitdiffstats
path: root/community/xpra/APKBUILD
blob: 0d6ff69c7c92e28d7808f501bc04b0cc76fa6900 (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=3.0.2
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="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
	avoid-x86-only-compile-flags.patch
	"

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="115f606ff5886d99a906f318cb1a7a4a86e80ebf23e4336e67938267d92ef624de577cc8fc06c6ce541b7c44a0cef58d930b5928f32e24dfc67c72127c7b623c  xpra-3.0.2.tar.xz
249028f61d20ee8c8378f9cebe13c6e0f288c7635eb66be44e20fef9af023266e1266a893cd4ce56dd7714ac1eb851be59cea5733fb8fc787e4b92e4f10c2a16  avoid-x86-only-compile-flags.patch"