blob: 8e4bcbd088a84ee0fab57c33412668eb14ad6301 (
plain)
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
104
|
# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=xpra
pkgver=3.0
pkgrel=1
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 !arhmf"
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
cython3
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="b261ee119c93e80e7bbdfbd8042e625039def69f197f4214db556fd898c31d2d3beeebfa6b011c729d56a3815e09b1f7e57896fe7b86290202fc1949cd2b09a5 xpra-3.0.tar.xz"
|