recipe 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. # Build recipe for dragora-ice (config, scheme).
  2. #
  3. # Copyright (c) 2019 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=dragora-ice
  17. version=20190920
  18. arch=noarch
  19. release=1
  20. # Set 'outdir' for a nice and well-organized output directory
  21. outdir="${outdir}/${arch}/x-apps"
  22. tarname=${program}-${version}.tar.lz
  23. # Remote source(s)
  24. fetch="
  25. https://dragora.mirror.garr.it/current/sources/$tarname
  26. rsync://rsync.dragora.org/current/sources/$tarname
  27. "
  28. description="
  29. Configuration files for dragora-ice.
  30. Custom configuration files and scheme to compose dragora-ice.
  31. "
  32. homepage=https://www.dragora.org
  33. license=GPLv3+
  34. build()
  35. {
  36. set -e
  37. unpack "${tardir}/$tarname"
  38. cd "$srcdir"
  39. mkdir -p "$destdir"
  40. cp -rPp ./* "${destdir}"/
  41. touch "${destdir}/etc/skel/.graft-config"
  42. # Set file permissions
  43. find "$destdir" -type f -name '*.sh' | xargs chmod 755
  44. chmod 755 "${destdir}/usr/share/icewm/startup"
  45. }