# Maintainer: Steffen Weber <-boenki-gmx-de-> # Contributor: Anonymo pkgname=clarity-icon-theme pkgver=0.4.2 pkgrel=1 pkgdesc="Vector icons in 8 colourthemes for GTK" arch=('any') makedepends=('imagemagick' 'librsvg') url="http://gnome-look.org/content/show.php/Clarity?content=135654" license=('GPL3') options=(!strip !zipman) source=(http://load.boenki.org/${pkgname}_${pkgver}.tar.gz) md5sums=('94c4207731668bc1dc7c51e9dc1a5229') ############################################################## #Put the themes you want to build in _buildtheme array below.# #By default all themes will be built. # # # #Available themes: # # violaceus - violet/pink gradient # # lux_violaceus - glossy variant # # canus - grey gradient # # dark_canus - dark grey gradient # # caeruleus - blue gradient # # lux_caeruleus - glossy variant # # viridis - green gradient # # luteus - orange gradient # ############################################################## _buildtheme=(violaceus lux_violaceus canus dark_canus caeruleus lux_caeruleus viridis luteus) build() { for _theme in ${_buildtheme[*]}; do cd "${srcdir}/${pkgname}_${pkgver}" msg "Building theme ${_theme}" make ${_theme} make arch install -d themes/${_theme} cp -r {scalable,16x16,index.theme} themes/${_theme} sed -i s/Name=Clarity/Name=Clarity-${_theme}/ themes/${_theme}/index.theme done } package() { for _theme in ${_buildtheme[*]}; do install -d "${pkgdir}/usr/share/icons/clarity-${_theme}" cp -r ${srcdir}/${pkgname}_${pkgver}/themes/${_theme}/{scalable,16x16,index.theme} \ "${pkgdir}/usr/share/icons/clarity-${_theme}" cd "${pkgdir}/usr/share/icons/clarity-${_theme}" ln -s applications-science.svg scalable/categories/applications-education.svg ln -s applications-science.png 16x16/categories/applications-education.png done }