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>
7 pkgbase=gtk2-metatheme-sonar
8 pkgname=gtk2-metatheme-sonar
9 true && pkgname=('gtk2-metatheme-sonar' 'sonar-icon-theme')
13 _iconthemepkg=icon-theme-sonar
14 pkgdesc="GTK+ and Metacity Sonar Theme"
16 url="http://www.opensuse.org"
20 makedepends=('rpmextract' 'patch' 'pkg-config' 'icon-naming-utils')
28 source=(http://download.opensuse.org/repositories/GNOME:/Factory/openSUSE_Factory/src/$pkgbase-${pkgver//_/-}.src.rpm)
30 md5sums=('09a417b45eda7faa2010454af678c7e8')
36 rpmextract.sh $pkgbase-${pkgver//_/-}.src.rpm
37 tar -xf metatheme-Sonar-${pkgver%_*}.tar.bz2
38 tar -xf $_iconthemepkg-$_iconthemever.tar.bz2
41 pushd $_iconthemepkg-$_iconthemever
42 ./configure --prefix=/usr
46 # this typo is intentional
47 patch -p0 < metatheme-Sonar_compatibilty-with-murrine-0.98.patch
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)
57 install -m 755 -d "$pkgdir/usr/share/themes/Sonar"
59 cp -a gtk-2.0 metacity-1 index.theme "$pkgdir/usr/share/themes/Sonar"
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"
70 package_sonar-icon-theme() {
71 pkgdesc="Sonar icon theme based on the upcoming GNOME icon theme."
73 depends=('gnome-icon-theme' 'hicolor-icon-theme')
74 install=sonar-icon-theme.install
76 cd "$srcdir/$_iconthemepkg-$_iconthemever"
77 make DESTDIR="$pkgdir/" install
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