recipe 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # Recipe file for freeciv.
  2. #
  3. # Maintainers: (C) 2016 Mateus P. Rodrigues, mprodrigues@dragora.org.
  4. #
  5. # Under the terms of the GNU General Public License.
  6. program=freeciv
  7. version=2.5.5
  8. release=1
  9. description="
  10. Freeciv is a free turn-based multiplayer strategy game, in which each
  11. player becomes the leader of a civilization, fighting to obtain the
  12. ultimate goal: To become the greatest civilization.
  13. "
  14. homepage=http://jim.tcl.tk
  15. license=BSD
  16. tarname=${program}-${version}.tar.bz2
  17. # Remote source(s)
  18. fetch="http://download.gna.org/freeciv/stable/freeciv-2.5.5.tar.bz2"
  19. # Parallel jobs for the compiler
  20. jobs=1
  21. # Source documentation
  22. docs="ABOUT-NLS AUTHORS COPYING NEWS README"
  23. build() {
  24. unpack "${tardir}/$tarname"
  25. cd "$srcdir"
  26. ./configure CFLAGS="$QICFLAGS" LDFLAGS="$QILDFLAGS"
  27. make -j${jobs}
  28. make -j${jobs} install DESTDIR="$destdir"
  29. # Copy documentation
  30. mkdir -p "${destdir}/usr/local/share/doc/${program}-${version}"
  31. cp -p $docs "${destdir}/usr/local/share/doc/${program}-${version}/"
  32. }