diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-05-12 16:42:50 +0300 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-05-12 16:42:50 +0300 |
commit | 752d6256e5204b958b0ef7905675a940b5e9172f (patch) | |
tree | 330d16e6362a49cbed8875a777fe641a43376cd3 /dev-lang/pico8/pico8-0.2.4c.ebuild | |
parent | 0c100b7dd2b30e75b799d806df4ef899fd98e1ea (diff) |
gentoo resync : 12.05.2022
Diffstat (limited to 'dev-lang/pico8/pico8-0.2.4c.ebuild')
-rw-r--r-- | dev-lang/pico8/pico8-0.2.4c.ebuild | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/dev-lang/pico8/pico8-0.2.4c.ebuild b/dev-lang/pico8/pico8-0.2.4c.ebuild new file mode 100644 index 000000000000..86749facb14f --- /dev/null +++ b/dev-lang/pico8/pico8-0.2.4c.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2022 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 ) +" +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" + +S="${WORKDIR}/${MY_PN}" + +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} +} |