summaryrefslogtreecommitdiff
path: root/pcr/xpra/PKGBUILD
blob: f77391b926207b4e3db0eb89cccc466372352df3 (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
# Maintainer: Márcio Silva <coadde@hyperbola.info>

pkgname=xpra
pkgver=0.17.6
pkgrel=1
pkgdesc='multi-platform X11 screen and application forwarding system'
arch=('i686' 'x86_64' 'armv7h')
license=('GPL2')
url="https://www.$pkgname.org"
backup=("etc/$pkgname/"{xorg,$pkgname}".conf")
depends=('gtk3' 'ffmpeg' 'python-cairo' 'xorg-server' 'xvidcore') # 'libwebp' disabled tmp
optdepends=('cups: CUPS (printing) support'
            'python-lcms: LittleCMS support'
            'python-lz4: LZ4 compression support'
            'python-lzo: LZO compression support'
            'python-pycups: CUPS (printing) support'
            'python-pyopencl: OpenCL support'
            'x11-ssh-askpass: OpenSSH passphrase dialog support'
            'xf86-video-dummy: Xdummy support')
makedepends=('cups' 'cython' 'lsb-release' 'python2-cairo' 'xf86-video-dummy')
source=("$url/src/$pkgname-$pkgver.tar.xz")
sha1sums=('9559c384531aaba051182b9a9c50dde82435fa17')

prepare() {
  cd $pkgname-$pkgver
  # remove xvid pkgconfig, due xvidcore package does not exist
  sed -i 's|[ ]and[ ]pkg_config_ok[(]["]--exists["][,][ ]["]xvid["][)]||
          \|xvid_pkgconfig[ ][=][ ]pkgconfig[(]["]xvid["][)]|d
          s|[[]["]xpra/codecs/xvid/encoder[.]pyx["][,][ ]buffers_c[]][,]|["xpra/codecs/xvid/encoder.pyx", buffers_c]))|
          \|[*][*]xvid_pkgconfig[)][)]|d
         ' setup.py
}

package() {
  cd $pkgname-$pkgver
  CFLAGS="$CFLAGS -fno-strict-aliasing" python setup.py build install \
    --root=$pkgdir \
    --with-{csc_opencl,gtk_x11,server,shadow,verbose,Xdummy{,_wrapper},xvid} \
    --without-{csc_libyuv,webp}
}