diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-06-20 00:10:57 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-06-20 00:10:57 +0100 |
commit | d6ca4e4f90cb75c323b5988eefa96a04c0d36908 (patch) | |
tree | 8197fc88451976470c871e991b75a9d40c240270 /dev-lang/pico8/pico8-0.2.6b.ebuild | |
parent | e8df704cf9b5e9e517317b8912377c0a8ca0d11e (diff) |
gentoo auto-resync : 20:06:2024 - 00:10:56
Diffstat (limited to 'dev-lang/pico8/pico8-0.2.6b.ebuild')
-rw-r--r-- | dev-lang/pico8/pico8-0.2.6b.ebuild | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/dev-lang/pico8/pico8-0.2.6b.ebuild b/dev-lang/pico8/pico8-0.2.6b.ebuild new file mode 100644 index 000000000000..c9c1a8c0905c --- /dev/null +++ b/dev-lang/pico8/pico8-0.2.6b.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit desktop xdg + +MY_PN="pico-8" +DESCRIPTION="Fantasy console for making and playing tiny games and other computer programs" +HOMEPAGE="https://www.lexaloffle.com/pico-8.php" +SRC_URI=" + amd64? ( ${MY_PN}_${PV}_amd64.zip ) + arm? ( ${MY_PN}_${PV}_raspi.zip ) + arm64? ( ${MY_PN}_${PV}_raspi.zip ) + x86? ( ${MY_PN}_${PV}_i386.zip ) +" +S="${WORKDIR}/${MY_PN}" +LICENSE="PICO-8 MIT BSD-2" +SLOT="0" +KEYWORDS="-* ~amd64 ~arm ~arm64 ~x86" +RESTRICT="bindist fetch" + +RDEPEND=" + media-libs/libsdl2[haptic,joystick,sound,video] + net-misc/wget +" + +BDEPEND="app-arch/unzip" + +DIR="/opt/${PN}" +QA_PREBUILT="${DIR}/${PN}" + +pkg_nofetch() { + einfo "Please buy and download ${A} from one of:" + einfo " ${HOMEPAGE}" + einfo " https://lexaloffle.itch.io/${MY_PN}" + einfo "and move it to your distfiles directory." +} + +src_install() { + exeinto "${DIR}" + insinto "${DIR}" + + case ${ARCH} in + amd64|arm) newexe ${PN}_dyn ${PN} ;; + arm64) newexe ${PN}_64 ${PN} ;; + x86) newexe ${PN}_32bit_dyn ${PN} ;; + esac + + doins ${PN}.dat + dodoc ${MY_PN}_manual.txt + + dosym ../..${DIR}/${PN} /usr/bin/${PN} + doicon -s 128 lexaloffle-${PN}.png + make_desktop_entry ${PN} ${MY_PN^^} lexaloffle-${PN} +} |