updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / gtk2-metatheme-sonar / PKGBUILD
blobcde9173883affb23f60d0c03a493ffc6428bf53a
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')
10 pkgver=11.3.0_42.1
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=('09a417b45eda7faa2010454af678c7e8')
32 build() {
33   cd "$srcdir"
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
40   # Make icon theme
41   pushd $_iconthemepkg-$_iconthemever
42   ./configure --prefix=/usr
43   make
44   popd
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)
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
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"
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
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
86   done