mirror of
https://github.com/dguglielmi/sunny-overlay.git
synced 2025-12-06 18:12:39 +01:00
54 lines
1.1 KiB
Bash
54 lines
1.1 KiB
Bash
# Copyright 2023 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit desktop toolchain-funcs xdg-utils
|
|
|
|
COMMIT_ID="340299a76db7"
|
|
|
|
DESCRIPTION="The fast and accurate Genesis emulator"
|
|
HOMEPAGE="https://www.retrodev.com/blastem/"
|
|
SRC_URI="https://www.retrodev.com/repos/blastem/archive/${COMMIT_ID}.tar.bz2 -> ${P}.tar.bz2"
|
|
|
|
LICENSE="GPL-3+"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~x86"
|
|
|
|
DEPEND="
|
|
media-libs/glew
|
|
media-libs/libsdl2
|
|
sys-libs/zlib
|
|
"
|
|
RDEPEND="${DEPEND}"
|
|
BDEPEND=""
|
|
|
|
S="${WORKDIR}/${PN}-${COMMIT_ID}"
|
|
|
|
src_compile() {
|
|
emake \
|
|
CC="$(tc-getCC)" \
|
|
OPT="${CFLAGS} ${LDFLAGS}" \
|
|
HOST_ZLIB=1 \
|
|
CONFIG_PATH="/usr/share/games/${PN}" \
|
|
DATA_PATH="/usr/share/games/${PN}"
|
|
}
|
|
|
|
src_install() {
|
|
dobin blastem
|
|
|
|
insinto "/usr/share/games/${PN}"
|
|
doins -r shaders images default.cfg rom.db gamecontrollerdb.txt
|
|
|
|
newicon "${S}/android/res/drawable-xxhdpi/ic_launcher.png" ${PN}.png
|
|
make_desktop_entry "${PN}" 'BlastEm' "${PN}" 'Game;Emulator'
|
|
}
|
|
|
|
pkg_postinst() {
|
|
xdg_desktop_database_update
|
|
}
|
|
|
|
pkg_postrm() {
|
|
xdg_desktop_database_update
|
|
}
|