aboutsummaryrefslogtreecommitdiffstats
path: root/community/xpra/APKBUILD
blob: 8df55e905e7ef43fd77b6deff26a15fe7a85759e (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
# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=xpra
pkgver=2.1.2
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="http://xpra.org"
# !armhf: fails to build
arch="all !s390x !armhf"
license="GPLv2+"
depends="py-gobject py-gtk py-imaging xf86-video-dummy xvfb setxkbmap xorg-server
	py2-numpy py2-pillow py-gtkglext py2-lz4 py-rencode py-opencl py2-xxhash
	py2-cryptography"
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 cython linux-headers gstreamer-dev py2-yuicompressor"
subpackages="$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="54a61ff25e19739453b5c30d7861f43c635b23677111549c38428141112be48445c267a56778159b51701c1bad15fd9ea26605807fe7cb67c9057adeb480a08a  xpra-2.1.2.tar.xz"