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

Untitled

By: a guest on May 16th, 2012  |  syntax: None  |  size: 2.92 KB  |  views: 65  |  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: flan_suse
  2.  
  3. # This suite contains the following:
  4. #        * xfwm4 theme
  5. #        * xfwm4 compact theme
  6. #        * metacity theme
  7. #        * emerald theme
  8. #        * gtk2 theme
  9. #        * gtk3 theme
  10. #        * xfce4-notify theme
  11. #        * lightdm theme
  12. #        * wallpaper
  13.  
  14. pkgname=xfce-theme-greybird
  15. _pkgname=Greybird
  16. pkgver=0.8.1
  17. pkgrel=5
  18. _gitdir=Greybird
  19. _gitbranch=gtk3.3
  20. _giturl="git://github.com/shimmerproject/$_gitdir.git"
  21. pkgdesc="A low saturation Xfce theme, introduced in the release of Xubuntu 11.04"
  22. arch=('any')
  23. url="http://shimmerproject.org/projects/greybird/"
  24. license=('GPL3' 'CCPL')
  25. groups=('xfce-themes-shimmer-collection')
  26. depends=('gtk-engine-murrine')
  27. makedepends=('git')
  28. optdepends=('elementary-xfce-icons: matching icon set, use dark icon theme'
  29.             'gtk-engine-unico: required for gtk3 support'
  30.             'lightdm-gtk-greeter: required for the lightdm theme')
  31. conflicts=('xfce-theme-greybird-git')
  32.  
  33. build() {
  34.  
  35.     # Change into source directory
  36.     cd "$srcidr"
  37.  
  38.     # Clone or pull from GIT server, and notify user of the status
  39.     msg "Connecting to GIT server...."
  40.     if [[ -d $_gitdir ]] ; then
  41.       cd "$_gitdir" && git pull origin "$_gitbranch"
  42.       msg "The local files are updated."
  43.     else
  44.       git clone "$_giturl" "$_gitdir"
  45.       cd "$_gitdir"
  46.     fi
  47.  
  48.     # Checkout current git-tag stable release
  49.     # Comment out the next line if you wish to use the master branch instead; not recommended
  50.     git checkout "v$pkgver"
  51.  
  52. }
  53.  
  54. package() {
  55.  
  56.     # Change into source directory
  57.     cd "${srcdir}"
  58.  
  59.     # Create installation directories
  60.     install -d -m755 "${pkgdir}/usr/share/themes/"
  61.     install -d -m755 "${pkgdir}/usr/share/backgrounds/"
  62.     install -d -m755 "${pkgdir}/usr/share/xfce4/backdrops/"
  63.  
  64.     # Copy the wallpaper to the correct directory
  65.     cp -f "$_pkgname/backdrops/greybird-wall-1920x1200.png" "${pkgdir}/usr/share/backgrounds/$_pkgname.png"
  66.  
  67.     # Install the rest of the theme
  68.     cp -rf "$_pkgname" "${pkgdir}/usr/share/themes/"
  69.  
  70.     # Make a symbolic link for the compact version of the xfwm4 theme
  71.     install -d -m755 "${pkgdir}/usr/share/themes/${_pkgname} Compact"
  72.     cd "${pkgdir}/usr/share/themes/${_pkgname} Compact"
  73.     ln -s "../${_pkgname}/xfwm4_compact" "xfwm4"
  74.  
  75.     # Make a symbolic link for the LightDM theme
  76.     install -d -m755 "${pkgdir}/usr/share/themes/${_pkgname} LightDM"
  77.     cd "${pkgdir}/usr/share/themes/${_pkgname} LightDM"
  78.     ln -s "../${_pkgname}/lightdm" "gtk-3.0"
  79.  
  80.     # Make a symbolic link inside of the Xfce backdrops directory, for use with Desktop Settings
  81.     cd "${pkgdir}/usr/share/xfce4/backdrops/"
  82.     ln -s "../../backgrounds/$_pkgname.png" "$_pkgname.png"
  83.  
  84.     # Remove excess files
  85.     rm -rf "${pkgdir}/usr/share/themes/${_pkgname}/.gitignore"
  86.     rm -rf "${pkgdir}/usr/share/themes/${_pkgname}/.git"
  87.     rm -rf "${pkgdir}/usr/share/themes/${_pkgname}/backdrops"
  88.  
  89. }
clone this paste RAW Paste Data