logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git

srb2-2.2.13.ebuild (1095B)


  1. # Copyright 2023 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=8
  4. DESCRIPTION="3D Sonic fan game based off of Doom Legacy"
  5. HOMEPAGE="https://srb2.org"
  6. SRC_URI="
  7. https://github.com/STJr/SRB2/archive/refs/tags/SRB2_release_${PV}.tar.gz
  8. https://github.com/STJr/SRB2/releases/download/SRB2_release_${PV}/SRB2-v${PV//.}-Full.zip
  9. "
  10. S="${WORKDIR}/SRB2-SRB2_release_${PV}/"
  11. LICENSE="GPL-2"
  12. SLOT="0"
  13. KEYWORDS="~amd64"
  14. DEPEND="
  15. media-libs/game-music-emu
  16. media-libs/libopenmpt
  17. media-libs/libpng:=
  18. media-libs/libsdl2
  19. media-libs/sdl2-mixer
  20. net-misc/curl
  21. sys-libs/zlib
  22. "
  23. RDEPEND="${DEPEND}"
  24. PATCHES=(
  25. "${FILESDIR}/srb2-2.2.13-execinfo_guard.patch"
  26. )
  27. src_prepare() {
  28. default
  29. rm -r libs || die
  30. rm "${WORKDIR}"/*.dll "${WORKDIR}"/srb2win.exe || die
  31. # Don't strip executable
  32. sed -i 's;all : $(exe);all : $(dbg);' src/Makefile || die
  33. }
  34. src_compile() {
  35. emake -C src/ USE_OPENMP=1 DBGNAME=srb2
  36. }
  37. src_install() {
  38. dobin bin/srb2
  39. cd "${WORKDIR}" || die
  40. insinto /usr/share/games/SRB2
  41. doins models.dat *.dta *.pk3
  42. }