1
0
mirror of https://github.com/dguglielmi/sunny-overlay.git synced 2025-12-06 07:22:38 +01:00

games-emulation/blastem: add ebuild

This commit is contained in:
2023-03-05 16:30:56 +01:00
parent e0282e4f1c
commit 360116a84a
2 changed files with 55 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
DIST blastem-0.6.3_pre20230219.tar.bz2 1284659 BLAKE2B b1b0bff68c6bd6c28a40b0425e0e8478a6a6f3bb065932e352e3b7ee5ce588db1bb911d1cd61d6890eafb2964529767b053584f2a0b2d90d00aba425895c0ed0 SHA512 dafa7cf7659854f4bfb571792ea7594ef0ac725948c74683e6e27e014a258733be6c7b9d5070f484d7f681b5914c75770da49ce0d32d53dce5b02b70f500bb59
EBUILD blastem-0.6.3_pre20230219.ebuild 1076 BLAKE2B 18b11bc8275ed96d1071a4e3f41c3085f4241ef333e2f7248a5eacdb45cc908235cad412ae665bc1ab4db42345c884db6eb74e91101a01ab7a7e193b5b3f5c1a SHA512 a554be4f93021c381adb266d9c1a448d21d7aef252dd64880e84274d9e9e5e70e359f5c3d8bc5d5fd247eb51e7006272e65166e9ea0a5ca8298416293a262d7e

View File

@@ -0,0 +1,53 @@
# 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="e6b2b2341c68"
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 ~i686"
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}" \
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
}