diff --git a/srcpkgs/stella/template b/srcpkgs/stella/template index 910d344e999..78c803a3649 100644 --- a/srcpkgs/stella/template +++ b/srcpkgs/stella/template @@ -11,6 +11,16 @@ homepage="https://stella-emu.github.io/" distfiles="https://github.com/stella-emu/stella/releases/download/${version}/stella-${version}-src.tar.xz" checksum=77b210d51af7e4be88c14014d507e48367bcdff6b8ba513793f035f3e30a21bd +post_extract() { + case "$XBPS_TARGET_MACHINE" in + *-musl) + sed -i 's/::PAGE_SIZE/::_PAGE_SIZE/g' $(grep -r '::PAGE_SIZE' -l) + sed -i 's/PAGE_SIZE/_PAGE_SIZE/g' src/emucore/MT24LC256.[ch]xx \ + src/emucore/System.hxx + ;; + esac +} + do_configure() { ./configure --prefix=/usr }