recipe 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. # Exit immediately on any error
  17. set -e
  18. program=gartoon-redux
  19. version=1.11
  20. arch=noarch
  21. release=3
  22. # Define a category for the output of the package name
  23. pkgcategory=x-libs
  24. tarname=${program}-${version}.tar.gz
  25. # Remote source(s)
  26. fetch=https://launchpad.net/gartoon-redux/1.x/${version}/+download/$tarname
  27. description="
  28. Cartoon-style SVG icon theme for Gnome, based on Gartoon.
  29. Gartoon Redux is an icon theme for Gnome derived from Gartoon.
  30. It contains hundreds of additional icons, while preserving the overall
  31. style of its predecessor. It includes pre-rendered PNGs in four sizes
  32. (16x16, 22x22, 24x24 and 32x32) to fix bugs with some programs, as well
  33. as increase performance.
  34. "
  35. homepage=https://launchpad.net/gartoon-redux
  36. license=GPLv2+
  37. # Source documentation
  38. docs="AUTHORS COPYING GPLv2.txt TODO changelog"
  39. docsdir="${docdir}/${program}-${version}"
  40. # This build system does not support parallel jobs
  41. jobs=1
  42. build()
  43. {
  44. unpack "${tardir}/$tarname"
  45. cd "$srcdir"
  46. # Set sane permissions
  47. chmod -R u+w,go-w,a+rX-s .
  48. ./configure --prefix=/usr --defer-fixlogo
  49. make -j${jobs} V=1
  50. make -j${jobs} PREFIX="${destdir}/usr" install
  51. # This script has an external dependency,
  52. # requires a Perl module for work
  53. rm -f "${destdir}/usr/share/icons/GartoonRedux/fix-logo.pl"
  54. # Copy documentation
  55. mkdir -p "${destdir}/$docsdir"
  56. cp -p $docs "${destdir}/$docsdir"
  57. }