Advertisement
4javier

Untitled

Sep 19th, 2017
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.31 KB | None | 0 0
  1. # Maintainer: Steffen Weber <-boenki-gmx-de->
  2. # Contributor: Anonymo <meowdib at gmail dot com>
  3. # Contributor: 4javier < 4javiereg4 at°gmail°dot°com>
  4.  
  5. pkgname=clarity-icon-theme
  6. pkgver=0.4.7
  7. pkgrel=1
  8. pkgdesc="Vector icons in 9 colourthemes for GTK"
  9. arch=('any')
  10. makedepends=('imagemagick' 'librsvg')
  11. url="https://www.gnome-look.org/p/1012535"
  12. license=('GPL3')
  13. options=(!strip !zipman)
  14. source=(https://dl.opendesktop.org/api/files/download/id/1502786869/1502786869-${pkgname}_${pkgver}.tar.gz)
  15. md5sums=('2d889963e20263a6fcfdc82ad0de4129')
  16.  
  17. ##############################################################
  18. #Put the themes you want to build in _buildtheme array below.#
  19. #By default all themes will be built. #
  20. # #
  21. #Available themes: #
  22. # violaceus - violet/pink gradient #
  23. # lux_violaceus - glossy variant #
  24. # canus - grey gradient #
  25. # dark_canus - dark grey gradient #
  26. # caeruleus - blue gradient #
  27. # lux_caeruleus - glossy variant #
  28. # viridis - green gradient #
  29. # luteus - orange gradient #
  30. # albus - white solid #
  31. ##############################################################
  32.  
  33. _buildtheme=(violaceus lux_violaceus canus dark_canus caeruleus lux_caeruleus viridis luteus albus)
  34.  
  35. build() {
  36. for _theme in ${_buildtheme[*]}; do
  37. cd "${srcdir}"/Clarity
  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
  44. }
  45.  
  46. package() {
  47. for _theme in ${_buildtheme[*]}; do
  48. install -d "${pkgdir}/usr/share/icons/clarity-${_theme}"
  49. cp -r ${srcdir}/Clarity/themes/${_theme}/{scalable,16x16,index.theme} \
  50. "${pkgdir}/usr/share/icons/clarity-${_theme}"
  51.  
  52. cd "${pkgdir}/usr/share/icons/clarity-${_theme}"
  53. ln -s applications-science.svg scalable/categories/applications-education.svg
  54. ln -s applications-science.png 16x16/categories/applications-education.png
  55. done
  56. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement