recipe 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # Recipe file for riscv-qemu.
  2. #
  3. # Maintainers: (C) 2016 Mateus P. Rodrigues, mprodrigues@dragora.org.
  4. #
  5. # Under the terms of the GNU General Public License.
  6. program=riscv-qemu
  7. version=20160920
  8. release=1
  9. description="
  10. This is a qemu fork with RISC-V support, both RV64G and TV32G are supported.
  11. Upstream qemu version is 2.7.50
  12. "
  13. homepage=https://github.com/riscv/riscv-qemu
  14. license=GPLv2
  15. tarname=${program}-${version}.tar.lz
  16. # Remote source(s)
  17. fetch=""
  18. # Parallel jobs for the compiler
  19. jobs=1
  20. # Source documentation
  21. docs="Changelog CODING_STYLE COPYING* HACKING LICENSE MAINTAINERS README* VERSION"
  22. build() {
  23. unpack "${tardir}/$tarname"
  24. cd "$srcdir"
  25. ./configure
  26. make -j${jobs}
  27. make -j${jobs} install DESTDIR="$destdir"
  28. # Compress manual pages
  29. lzip -9 "${destdir}/usr/local/share/man/man1/qemu.1"
  30. lzip -9 "${destdir}/usr/local/share/man/man1/qemu-img.1"
  31. lzip -9 "${destdir}/usr/local/share/man/man1/virtfs-proxy-helper.1"
  32. lzip -9 "${destdir}/usr/local/share/man/man8/qemu-ga.8"
  33. lzip -9 "${destdir}/usr/local/share/man/man8/qemu-nbd.8"
  34. # Copy documentation
  35. mkdir -p "${destdir}/usr/local/share/doc/${program}-${version}"
  36. cp -p $docs "${destdir}/usr/local/share/doc/${program}-${version}/"
  37. }