aboutsummaryrefslogtreecommitdiffstats
path: root/community/xpra/APKBUILD
blob: 5de368cced367f8357b841767594b11647e7b024 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=xpra
pkgver=3.0.8
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"
# blocked by numpy
arch="all !mips !mips64"
license="GPL-2.0-or-later"
depends="
	py3-gobject3
	py3-numpy
	py3-opengl
	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
	py3-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="a78cbcc69f09d6d0ad0cbae908baf5ea739a226fe40fa659d2306fdf6ea874e74762ee9a7c17d01844c780e5adcae0dab3006e0c793da72592ed0cd1c621e606  xpra-3.0.8.tar.xz"