Want more features on Pastebin? Sign Up, it's FREE!
Guest

PKGBUILD compiz-core-dev ArchLinux without KDE

By: a guest on Jan 3rd, 2012  |  syntax: Bash  |  size: 2.19 KB  |  views: 93  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer: György Balló <ballogy@freestart.hu>
  2. pkgbase=compiz-dev
  3. _pkgbase=compiz
  4. pkgname=(compiz-core-dev compiz-decorator-gtk-dev)
  5. pkgver=0.9.5.92.1
  6. pkgrel=1
  7. arch=('i686' 'x86_64')
  8. url="http://www.compiz.org/"
  9. license=('MIT')
  10. makedepends=(
  11. # Build depends
  12. 'cmake' 'boost>=1.34.0' 'automoc4' 'intltool'
  13. # Core depends
  14. 'libxcomposite' 'libxrandr' 'libxinerama' 'libxslt' 'glibmm' 'startup-notification>=0.7' 'mesa' 'dbus-core' 'librsvg' 'libsigc++' 'boost-libs'
  15. # GTK+ depends
  16. 'metacity' 'gnome-control-center')
  17. source=(http://releases.compiz.org/$pkgver/$_pkgbase-$pkgver.tar.bz2)
  18. md5sums=('c45dd77bd1937b75c850f80a411e46cb')
  19.  
  20. build() {
  21.   cd "$srcdir/$_pkgbase-$pkgver"
  22.  
  23.   [[ -d build ]] || mkdir build
  24.   cd build
  25.  
  26.   cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DCOMPIZ_DESTDIR="$pkgdir/$pkgname"
  27.   make
  28. }
  29.  
  30. package_compiz-core-dev() {
  31.   pkgdesc="Composite manager for Aiglx and Xgl"
  32.   depends=('glibmm' 'startup-notification' 'librsvg' 'libxcomposite' 'dbus-core' 'libsigc++' 'libxinerama' 'boost-libs' 'mesa' 'libxrandr' 'libxslt')
  33.   provides=(compiz-core=0.9.5.92.1)
  34.   conflicts=(compiz-core)
  35.  
  36.   cd "$srcdir/$_pkgbase-$pkgver/build"
  37.  
  38.   make install
  39.   make findcompiz_install
  40.  
  41.   install -Dm644 "$srcdir/$_pkgbase-$pkgver/COPYING.MIT" "$pkgdir/usr/share/licenses/${pkgname[0]}/COPYING.MIT"
  42.  
  43.   # Split gtk and kde stuff
  44.   [[ -d $srcdir/gtk ]] && rm -r "$srcdir/gtk/"
  45.   mkdir "$srcdir/gtk/"
  46.   mv "$pkgdir"/usr/{share/{gconf,glib-2.0},bin/gtk-window-decorator} \
  47.     "$srcdir/gtk/"
  48. }
  49.  
  50. package_compiz-decorator-gtk-dev() {
  51.   pkgdesc="Compiz decorator for GNOME"
  52.   depends=('compiz-core' 'metacity' 'gnome-control-center')
  53.   provides=(compiz-decorator-gtk=0.9.5.92.1)
  54.   conflicts=(compiz-decorator-gtk)
  55.   install=compiz-decorator-gtk.install
  56.  
  57.   cd "${srcdir}/gtk"
  58.   mkdir -p "$pkgdir"/usr/{share/gconf/schemas,bin}
  59.  
  60.   mv glib-2.0             "$pkgdir/usr/share/"
  61.   mv gtk-window-decorator "$pkgdir/usr/bin/"
  62.  
  63.   gconf-merge-schema ${pkgdir}/usr/share/gconf/schemas/compiz-decorator-gtk.schemas \
  64.         $srcdir/gtk/gconf/schemas/*.schemas
  65.  
  66.   install -Dm644 "$srcdir/$_pkgbase-$pkgver/COPYING.MIT" "$pkgdir/usr/share/licenses/${pkgname[1]}/COPYING.MIT"
  67. }
clone this paste RAW Paste Data