Advertisement
Guest User

light-themes

a guest
Sep 21st, 2011
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.38 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement