updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / gnome-theme-sonar / PKGBUILD
blob1abb142818cd4bdc8e6d4058d4d407476c3b4480
1 # Maintainer: Link Dupont <link.dupont@gmail.com>
2 # Contributor: Lukas Jirkovsky <l DOT jirkovsky AT gmail DOT com>
4 pkgname=gnome-theme-sonar
5 replaces=('gtk2-theme-sonar')
6 conflicts=('gtk2-theme-sonar')
7 pkgver=11.3.0_35.1
8 _realver=11.3.0
9 _iconthemever=11.3.1
10 _pkgver=11.3.0-35.1
11 pkgrel=1
12 pkgdesc="Default GNOME theme from openSUSE 11.3"
13 arch=('any')
14 url="http://www.opensuse.org/"
15 license=('GPL')
16 depends=('gtk-engine-murrine')
17 provides=('sonar-icon-theme' 'gtk2-theme-sonar')
18 makedepends=('rpmextract')
19 source=(http://download.opensuse.org/repositories/GNOME:/Factory/openSUSE_Factory/src/gtk2-metatheme-sonar-${_pkgver}.src.rpm)
20 md5sums=('290957ad22cd7ce021139b33f29d63e5')
22 build() {
23   cd "$srcdir"
25   rpmextract.sh gtk2-metatheme-sonar-${_pkgver}.src.rpm
26   tar -xf metatheme-Sonar-${_realver}.tar.bz2
27   tar -xf icon-theme-sonar-${_iconthemever}.tar.bz2
29   install -m 755 -d "$pkgdir"/usr/share/themes/Sonar
30   cp -a Sonar/gtk-2.0/ "$pkgdir"/usr/share/themes/Sonar
31   cp -a Sonar/metacity-1/ "$pkgdir"/usr/share/themes/Sonar
32   cp -a Sonar/index.theme "$pkgdir"/usr/share/themes/Sonar
34   cd icon-theme-sonar-${_iconthemever}
35   ./configure --prefix=/usr
36   make || return 1
37   make DESTDIR=$pkgdir install || return 1
38   rm $pkgdir/usr/share/themes/Sonar/metacity-1/Makefile*
40   chown -R root:root "$pkgdir"
43 # vim:set ts=2 sw=2 et: