arun_kpm

SPICE-GTK3 PKGBUILD

Oct 22nd, 2017
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.04 KB | None | 0 0
  1. # $Id$
  2. # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
  3. # Contributor: Stefano Facchini <stefano.facchini@gmail.com>
  4. # Contributor: Jonathan Lestrelin <zanko@daemontux.org>
  5. # Contributor: Lucio Zara <pennega@gmail.com>
  6.  
  7. pkgname=spice-gtk3
  8. pkgver=0.34
  9. pkgrel=7
  10. pkgdesc="Gtk client and libraries for SPICE remote desktop servers (gtk3 version)"
  11. arch=('i686' 'x86_64')
  12. url="https://www.spice-space.org"
  13. license=('LGPL2.1')
  14. depends=('celt0.5.1' 'dbus-glib' 'gtk3' 'libcacard' 'libpulse' 'usbredir' 'libsoup' 'spice-glib')
  15. makedepends=('gobject-introspection' 'intltool' 'python2-pyparsing' 'spice-protocol' 'usbutils'
  16. 'vala' 'sdl' 'python2-six')
  17. options=('!emptydirs')
  18. source=("https://www.spice-space.org/download/gtk/spice-gtk-$pkgver.tar.bz2"
  19. debian_843471-clipboard_Fix_crash_by_handling_error.patch
  20. ssl-Stop-creating-our-own-X509_LOOKUP_METHOD.patch
  21. ssl-Rework-our-custom-BIO-type.patch
  22. ssl-Use-accessors-rather-than-direct-struct-access.patch)
  23. sha256sums=('7daf33b786ab8ebc9fe6e7b11745100ee1ab66e61a5811d1d5aabe4d66eaaf39'
  24. '31cacbfce3de9c7599f3cca5b45ed76cf5e3997072aae64b4107676b0b9a2f7b'
  25. '0e0d553992ea08a29b14439061c6e831ce4ba4bd7bb5e53d7e7e1306aa6ba0fa'
  26. '91bbb28dc5a8968c0eea57919d9a4a86384a62909014b53b05b5e721afa8142d'
  27. '0e65852f94849c3efe0c21c01f4be7b804641d7d178b12a22eb62f08db70371e')
  28.  
  29. prepare() {
  30. cd "$srcdir/spice-gtk-$pkgver"
  31. }
  32.  
  33. build() {
  34. cd "$srcdir/spice-gtk-$pkgver"
  35. PYTHON=python2 ./configure --prefix=/usr \
  36. --disable-static --enable-vala --with-gtk=3.0 \
  37. --with-audio=pulse \
  38. --with-coroutine=gthread --sbindir=/usr/bin \
  39. --enable-smartcard
  40. sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
  41. make
  42. }
  43.  
  44. package() {
  45. cd "$srcdir/spice-gtk-$pkgver"
  46. make DESTDIR="$pkgdir/" install
  47. pacman -Ql spice-glib | cut -f2 -d' ' | while read f; do
  48. [ -f "$pkgdir"/$f ] && rm -f "$pkgdir"/$f || true
  49. f=$(echo $f | sed 's|.gz$||')
  50. [ -f "$pkgdir"/$f ] && rm -f "$pkgdir"/$f || true
  51. done
  52. }
Add Comment
Please, Sign In to add comment