1
0
flewkey-overlay/app-emulation/x16-emulator/x16-emulator-9999.ebuild
Ryan Fox 9d653ad13f
app-emulation/x16-emulator: New package
Sorry about not packaging the ROM, I seriously don't know where to put
it.

Package-Manager: Portage-3.0.9, Repoman-3.0.2
Signed-off-by: Ryan Fox <flewkey@2a03.party>
2020-12-25 23:41:24 +00:00

47 lines
1.2 KiB
Bash

# Copyright 2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
if [[ ${PV} != *9999* ]]; then
SRC_URI="https://github.com/commanderx16/x16-emulator/archive/r${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
else
inherit git-r3
EGIT_REPO_URI="https://github.com/commanderx16/x16-emulator.git"
fi
DESCRIPTION="Emulator for the Commander X16 computer"
HOMEPAGE="https://github.com/commanderx16/x16-emulator"
LICENSE="BSD-2"
SLOT="0"
DEPEND=""
RDEPEND="${DEPEND}"
BDEPEND=""
src_unpack() {
if [[ ${PV} != *9999* ]]; then
default
mv "${WORKDIR}/${PN}-r${PV}" "${S}"
else
git-r3_src_unpack
fi
}
src_install() {
dobin "${S}/x16emu"
}
pkg_postinst() {
elog "The Commander X16 emulator requires a ROM to run. The location can"
elog "be specified using the -rom /path/to/rom.bin option."
elog
elog "Build instructions are available in the README of the x16-rom"
elog "repository. The assembler is available as dev-embedded/cc65 in this"
elog "overlay. If anyone can think of a good category and directory to put"
elog "the ROM, let me know and I'll package it so this won't be necessary."
elog
elog "https://github.com/commanderx16/x16-rom/blob/master/README.md#building-the-rom"
}