Guest User

cairo-compmgr-git

a guest
Apr 18th, 2015
428
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Maintainer: Cedric Girard <girard.cedric@gmail.com>
  2. # Contributor: catalyst <catalyst@xaker.ru>
  3. # Contributor: Jacob Winther <jacob.winther@gmail.com>
  4.  
  5. pkgname=cairo-compmgr-git
  6. epoch=1
  7. pkgver=0.3.1.35.g719a997
  8. pkgrel=4
  9. pkgdesc="Cairo based composite manager - Git version"
  10. arch=(i686 x86_64)
  11. url="http://cairo-compmgr.tuxfamily.org/"
  12. license=(LGPL3)
  13. conflicts=(cairo-compmgr)
  14. provides=(cairo-compmgr)
  15. makedepends=(gettext git gtk-doc "intltool>=0.41" gconf)
  16. depends=("gtk2>=2.16.0" "vala>=0.26" libsm libgl)
  17. options=(!makeflags
  18. !libtool)
  19.  
  20. source=('cairocompmgr::git+https://github.com/gandalfn/Cairo-Composite-Manager.git'
  21. 'https://github.com/gandalfn/Cairo-Composite-Manager/pull/4.diff'
  22. 'bfd_ansidecl.patch'
  23. )
  24. md5sums=('SKIP'
  25. '011074cd9687475ebf9ac93fc1f535aa'
  26. 'b316779ffe9f86ada7ed601ae433789b')
  27.  
  28. pkgver() {
  29. cd "$srcdir"/cairocompmgr
  30. git describe --tags | sed 's|-|.|g'
  31. }
  32.  
  33. prepare() {
  34. cd "$srcdir"/cairocompmgr
  35.  
  36. #patch for compatibility with vala 0.26
  37. sed -i 's!libvala-0.18!libvala-0.28!' configure.ac
  38. sed -i 's!libvala-0.18!libvala-0.28!' vapi/cairo-compmgr.deps
  39. sed -i '/^.*clone.*/ d' configure.ac
  40. sed -i '/^.*clone.*/ d' plugins/Makefile.am
  41. rm -rf plugins/clone
  42.  
  43. #patch needed to build with newer deps version
  44. patch -p1 < ../4.diff
  45.  
  46. #bfd.h should include ansidecl.h
  47. patch -p2 < ../bfd_ansidecl.patch
  48.  
  49. }
  50.  
  51. build() {
  52. cd "$srcdir"/cairocompmgr
  53.  
  54. ./autogen.sh --prefix=/usr LIBS="-ldl -lgmodule-2.0 -lm -lz"
  55.  
  56. make
  57. }
  58.  
  59. package() {
  60. cd "$srcdir"/cairocompmgr
  61.  
  62. make DESTDIR="$pkgdir" install
  63. install -d "$pkgdir/usr/share/gconf/schemas/"
  64. gconf-merge-schema "$pkgdir/usr/share/gconf/schemas/cairo-compmgr.schemas" "$pkgdir/etc/gconf/schemas/*.schemas"
  65. rm -rf "$pkgdir/etc/gconf/schemas/"
  66.  
  67. }
  68.  
  69. # vim:set ts=2 sw=2 et:
RAW Paste Data