updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / clarity-icon-theme / PKGBUILD
blob3ec2a38970583a83d457179eac6d378c7e561e60
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.2
6 pkgrel=2
7 pkgdesc="Vector icons in 7 colourthemes for GTK."
8 arch=('any')
9 makedepends=('imagemagick')
10 url="http://gnome-look.org/content/show.php/Clarity?content=135654"
11 license=('GPL3')
12 options=(!strip !zipman)
13 source=(http://www.fileden.com/files/2011/2/28/3088999/${pkgname}_${pkgver}.tar.gz)
14 md5sums=('e0f25fe13e1108a73bb2b6605d0749e3')
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     #################################################################
29     #
30   #####
31    ###
32     #
33 _buildtheme=(violaceus lux_violaceus canus dark_canus caeruleus lux_caeruleus viridis luteus)
35 build() {
36 for _theme in ${_buildtheme[*]}; do
37   cd "${srcdir}/${pkgname}_${pkgver}"
38   make ${_theme}
39   make arch
40   install -d themes/${_theme}
41   cp -r {scalable,16x16,index.theme} themes/${_theme}
42   sed -i s/Name=Clarity/Name=Clarity-${_theme}/ themes/${_theme}/index.theme
43 done
46 package() {
47 for _theme in ${_buildtheme[*]}; do
48   install -d "${pkgdir}/usr/share/icons/clarity-${_theme}"
49   cp -r ${srcdir}/${pkgname}_${pkgver}/themes/${_theme}/{scalable,16x16,index.theme} \
50     "${pkgdir}/usr/share/icons/clarity-${_theme}"
51 done