aboutsummaryrefslogtreecommitdiffstats
path: root/community/xpra/APKBUILD
blob: deb862618facc953a3937fc5b75ada08bb7ad207 (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
# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=xpra
pkgver=0.17.5
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="http://xpra.org"
arch="all"
license="GPLv2+"
depends="py-gobject py-gtk py-imaging xf86-video-dummy xvfb setxkbmap xorg-server
	py-numpy py-pillow py-gtkglext py-lz4 py-rencode py-opencl"
depends_dev="python-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 libwebp-dev"
makedepends="$depends_dev cython linux-headers"
subpackages="$pkgname-dev $pkgname-doc $pkgname-tests"
source="http://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"
	python setup.py build \
		--with-csc_opencl \
		--with-bundle_tests \
		|| return 1
}

package() {
	cd "$builddir"
	python setup.py install --prefix=/usr --root="$pkgdir" || return 1
}

tests() {
	arch="noarch"

	cd "$builddir"
	mkdir -p "$subpkgdir"/usr/share/xpra
	cp -rf tests "$subpkgdir"/usr/share/xpra/
}

md5sums="9ec20dae64cee8dbc70e6d5dbae0ab4a  xpra-0.17.5.tar.xz"
sha256sums="716c655d2acf8dfe040957d6a9ee639407e570462f36e5e8ba402041ba8a6506  xpra-0.17.5.tar.xz"
sha512sums="90e70ba556c1ddc63b15945739b9b006968e3b168dffebf1ab5ef46d8345c0823c2cb33cc2800fbb36fa7195a85d4a03cf74a0f68f93db9b9f1add986bd657a1  xpra-0.17.5.tar.xz"