This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

light-themes

By: a guest on Sep 21st, 2011  |  syntax: Bash  |  size: 1.38 KB  |  views: 213  |  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: Michal Gawronski <dinth1906@gmail.com>
  2.  
  3. pkgname=light-themes
  4. pkgver=0.1.8.25
  5. pkgrel=1
  6. pkgdesc="Ubuntu 'light' themes Ambiance and Radiance (GTK2 and GTK3)"
  7. arch=('i686' 'x86_64')
  8. url="https://launchpad.net/light-themes"
  9. license=('GPL')
  10. depends=("gtk-engine-murrine" "ubuntu-mono" "gtk3" "gtk-engine-unico")
  11. makedepends=('bzr')
  12. provides=('light-themes-bzr')
  13. conflicts=('light-themes-bzr')
  14. source=()
  15. md5sums=()
  16. _bzrbranch=lp:ubuntu/light-themes
  17. _bzrmod=light-themes
  18.  
  19. build() {
  20.         cd ${srcdir}
  21.  
  22.         msg "Connecting to the server...."
  23.  
  24.         if [ ! -d ./${_bzrmod} ]; then
  25.                 bzr co ${_bzrbranch} ${_bzrmod}
  26.         else
  27.                 bzr up ${_bzrmod}
  28.         fi
  29.  
  30.         msg "BZR checkout done or server timeout"
  31.         msg "Starting make..."
  32.  
  33.         [ -d ./${_bzrmod}-build ] && rm -rf ./${_bzrmod}-build
  34.         cp -r ./${_bzrmod} ./${_bzrmod}-build
  35.         cd ./${_bzrmod}-build
  36.  
  37.         install -d ${pkgdir}/usr/share/themes || return 1
  38.         cp -R Ambiance/ ${pkgdir}/usr/share/themes/ || return 1
  39.         cp -R Radiance/ ${pkgdir}/usr/share/themes/ || return 1
  40.  
  41.         sed -i -e "/shadow radius/d" "$pkgdir/usr/share/themes/Ambiance/metacity-1/metacity-theme-1.xml"
  42.         sed -i -e "/shadow radius/d" "$pkgdir/usr/share/themes/Radiance/metacity-1/metacity-theme-1.xml"
  43.         sed -i -e "/padding/d" "$pkgdir/usr/share/themes/Ambiance/metacity-1/metacity-theme-1.xml"
  44.         sed -i -e "/padding/d" "$pkgdir/usr/share/themes/Radiance/metacity-1/metacity-theme-1.xml"
  45. }
clone this paste RAW Paste Data