recipe 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. # Build recipe for gartoon-redux.
  2. #
  3. # Copyright (c) 2018 Matias Fonzo, <selk@dragora.org>.
  4. #
  5. # Licensed under the Apache License, Version 2.0 (the "License");
  6. # you may not use this file except in compliance with the License.
  7. # You may obtain a copy of the License at
  8. #
  9. # http://www.apache.org/licenses/LICENSE-2.0
  10. #
  11. # Unless required by applicable law or agreed to in writing, software
  12. # distributed under the License is distributed on an "AS IS" BASIS,
  13. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. # See the License for the specific language governing permissions and
  15. # limitations under the License.
  16. program=gartoon-redux
  17. version=1.11
  18. arch=noarch
  19. release=3
  20. # Set 'outdir' for a nice and well-organized output directory
  21. outdir="${outdir}/${arch}/x-libs"
  22. tarname=${program}-${version}.tar.gz
  23. # Remote source(s)
  24. fetch=http://launchpad.net/gartoon-redux/1.x/${version}/+download/$tarname
  25. description="
  26. Cartoon-style SVG icon theme for Gnome, based on Gartoon.
  27. Gartoon Redux is an icon theme for Gnome derived from Gartoon.
  28. It contains hundreds of additional icons, while preserving the overall
  29. style of its predecessor. It includes pre-rendered PNGs in four sizes
  30. (16x16, 22x22, 24x24 and 32x32) to fix bugs with some programs, as well
  31. as increase performance.
  32. "
  33. homepage=http://launchpad.net/gartoon-redux
  34. license=GPLv2+
  35. # Source documentation
  36. docs="AUTHORS COPYING GPLv2.txt TODO changelog"
  37. docsdir="${docdir}/${program}-${version}"
  38. # This build system does not support parallel jobs
  39. jobs=1
  40. build()
  41. {
  42. set -e
  43. unpack "${tardir}/$tarname"
  44. cd "$srcdir"
  45. # Set sane permissions
  46. chmod -R u+w,go-w,a+rX-s .
  47. ./configure --prefix=/usr --defer-fixlogo
  48. make -j${jobs} V=1
  49. make -j${jobs} PREFIX="${destdir}/usr" install
  50. # This script has an external dependency,
  51. # requires a Perl module for work
  52. rm -f "${destdir}/usr/share/icons/GartoonRedux/fix-logo.pl"
  53. # Copy documentation
  54. mkdir -p "${destdir}${docsdir}"
  55. cp -p $docs "${destdir}${docsdir}"
  56. }