updated on Tue Jan 10 16:09:17 UTC 2012
[aur-mirror.git] / clarity-icon-theme / PKGBUILD
blobe6b235ae0cf762baa582be25ff6c0482b7485dee
1 # Maintainer: boenki <boenki at gmx dot de>
2 # Contributor: Anonymo <meowdib at gmail dot com>
4 pkgname=clarity-icon-theme
5 pkgver=0.3.1
6 pkgrel=1
7 pkgdesc="Vector icon theme for GTK. It can be used with XFCE or GNOME"
8 arch=('any')
9 makedepends=('imagemagick')
10 url="http://gnome-look.org/content/show.php/Clarity?content=135654"
11 license=('CCPL:cc-by-3.0')
12 options=(!strip)
13 source=(http://www.fileden.com/files/2011/2/28/3088999/${pkgname}_${pkgver}.tar.gz)
14 md5sums=('0f4ed424de425c1fd96192dccfe72eea')
16   #################################################################
17   #  Put the themes you want to build in _buildtheme array below  #
18   #                                                               #
19   # Available themes:                                             #
20   #  violaceus      - violet/pink gradient                        #
21   #  lux_violaceus  - glossy variant                              #
22   #  canus          - grey gradient                               #
23   #  dark_canus     - dark grey gradient                          #
24   #  caeruleus      - blue gradient                               #
25   #  lux_caeruleus  - glossy variant                              #
26   #  viridis        - green gradient                              #
27   #  luteus         - orange gradient                             #
28   #################################################################
30 _buildtheme=(violaceus lux_violaceus canus dark_canus caeruleus lux_caeruleus viridis luteus)
32 build() {
33 for _theme in ${_buildtheme[*]}; do
34   cd ${srcdir}/${pkgname}_${pkgver}
35   make ${_theme}
36   install -d themes/${_theme}
37   cp -r {scalable,16x16,index.theme} themes/${_theme}
38   sed -i s/Name=Clarity/Name=Clarity-${_theme}/ themes/${_theme}/index.theme
39 done
42 package() {
43 for _theme in ${_buildtheme[*]}; do
44   
45   cd ${srcdir}/${pkgname}_${pkgver}/themes/${_theme}
46   install -d ${pkgdir}/usr/share/icons/Clarity-${_theme}
47   cp -r {scalable,16x16,index.theme} ${pkgdir}/usr/share/icons/Clarity-${_theme}
49   cd ${pkgdir}/usr/share/icons/Clarity-${_theme}
51   #install archlinux icons
52   ln -sf ../distributor-logos/arch.svg scalable/places/start-here.svg
53   ln -sf ../distributor-logos/arch.svg scalable/places/gnome-main-menu.svg
54   ln -sf ../distributor-logos/arch.svg scalable/places/distributor-logo.svg
55   ln -sf ../distributor-logos/arch.png 16x16/places/start-here.png
56   ln -sf ../distributor-logos/arch.png 16x16/places/gnome-main-menu.png
57   ln -sf ../distributor-logos/arch.png 16x16/places/distributor-logo.png
59   #symlink adobe-flash to the right place
60   ln -s adobe-flashplayer.svg scalable/apps/flash-player-properties.svg
61   ln -s adobe-flashplayer.png 16x16/apps/flash-player-properties.png
63   #symlink email-icon to the right place
64   ln -s email.svg scalable/apps/internet-mail.svg
65   ln -s email.png 16x16/apps/internet-mail.png
67   #create icon for qlandkartegt
68   ln -s google-earth.svg scalable/apps/qlandkartegt.svg
69   ln -s google-earth.png 16x16/apps/qlandkartegt.png
71   #create icon for wicd
72   ln -s ../devices/network-wireless.svg scalable/apps/wicd-gtk.svg
73   ln -s ../devices/network-wireless.png 16x16/apps/wicd-gtk.png
75   #create icon for camorama
76   ln -s ../devices/camera-web.svg scalable/apps/camorama.svg
77   ln -s ../devices/camera-web.png 16x16/apps/camorama.png
79   #create icon for galculator
80   ln -s calc.svg scalable/apps/galculator.svg
81   ln -s calc.png 16x16/apps/galculator.png
83   #create icon for dconf-editor
84   ln -s ../categories/package_settings.svg scalable/apps/dconf-editor.svg
85   ln -s ../categories/package_settings.png 16x16/apps/dconf-editor.png
87 done