Pastebin is 300% more awesome when you are logged in. Sign Up, it's FREE!
Guest

gtk2-metatheme-sonar PKGBUILD

By: a guest on Jan 8th, 2011  |  syntax: None  |  size: 2.50 KB  |  hits: 114  |  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: Link Dupont <link.dupont@gmail.com>
  2. # Contributor: Link Dupont <link.dupont@gmail.com>
  3. # Previous contributors:
  4. # - Javier Aravena <javier@aravenas.com>
  5. # - Lukas Jirkovsky <l DOT jirkovsky AT gmail DOT com>
  6.  
  7. pkgbase=gtk2-metatheme-sonar
  8. pkgname=gtk2-metatheme-sonar
  9. true && pkgname=('gtk2-metatheme-sonar' 'sonar-icon-theme')
  10. pkgver=11.3.0_42.3
  11. pkgrel=2
  12. _iconthemever=11.3.1
  13. _iconthemepkg=icon-theme-sonar
  14. pkgdesc="GTK+ and Metacity Sonar Theme"
  15. arch=(any)
  16. url="http://www.opensuse.org"
  17. license=('GPL2')
  18. groups=()
  19. depends=()
  20. makedepends=('rpmextract' 'patch' 'pkg-config' 'icon-naming-utils')
  21. provides=()
  22. conflicts=()
  23. replaces=()
  24. backup=()
  25. options=()
  26. install=
  27. changelog=ChangeLog
  28. source=(http://download.opensuse.org/repositories/GNOME:/Factory/openSUSE_Factory/src/$pkgbase-${pkgver//_/-}.src.rpm)
  29. noextract=()
  30. md5sums=('5f7e9e6d672b0f3ac7d27a1401c30327')
  31.  
  32. build() {
  33.   cd "$srcdir"
  34.  
  35.   # Extract sources
  36.   rpmextract.sh $pkgbase-${pkgver//_/-}.src.rpm
  37.   tar -xf metatheme-Sonar-${pkgver%_*}.tar.bz2
  38.   tar -xf $_iconthemepkg-$_iconthemever.tar.bz2
  39.  
  40.   # Make icon theme
  41.   pushd $_iconthemepkg-$_iconthemever
  42.   ./configure --prefix=/usr
  43.   make
  44.   popd
  45.  
  46.   # this typo is intentional
  47.   patch -p0 < metatheme-Sonar_compatibilty-with-murrine-0.98.patch
  48. }
  49.  
  50. package_gtk2-metatheme-sonar() {
  51.   pkgdesc="GTK+ and Metacity theme created for openSUSE 11.2."
  52.   depends=(gtk-engine-murrine)
  53.   provides=(gtk2-theme-sonar)
  54.   conflicts=(gnome-theme-sonar gtk2-theme-sonar)
  55.  
  56.   cd "$srcdir"
  57.   install -m 755 -d "$pkgdir/usr/share/themes/Sonar"
  58.   pushd Sonar
  59.   cp -a gtk-2.0 metacity-1 index.theme "$pkgdir/usr/share/themes/Sonar"
  60.   popd
  61.  
  62.   # Clean up $pkgdir
  63.   rm "$pkgdir/usr/share/themes/Sonar/metacity-1/Makefile"
  64.   rm "$pkgdir/usr/share/themes/Sonar/metacity-1/Makefile.am"
  65.   rm "$pkgdir/usr/share/themes/Sonar/metacity-1/Makefile.in"
  66.   chmod o-w "$pkgdir/usr/share/themes/Sonar/metacity-1"
  67.   chown -R root:root "$pkgdir"
  68. }
  69.  
  70. package_sonar-icon-theme() {
  71.   pkgdesc="Sonar icon theme based on the upcoming GNOME icon theme."
  72.   pkgver=11.3.1-42.1
  73.   depends=('gnome-icon-theme' 'hicolor-icon-theme')
  74.   install=sonar-icon-theme.install
  75.  
  76.   cd "$srcdir/$_iconthemepkg-$_iconthemever"
  77.   make DESTDIR="$pkgdir/" install
  78.  
  79.   # Debrand the SUSE/Novell images
  80.   cd "$pkgdir/usr/share/icons/Sonar"
  81.   for i in 16x16 22x22 24x24 32x32 48x48;do
  82.     rm $i/places/gnome-main-menu.png\
  83.        $i/places/novell-button.png\
  84.        $i/places/start-here.png\
  85.        $i/places/distributor-logo.png
  86.   done
  87. }