app-emulation/gsplus: new ebuild

This commit is contained in:
layman
2019-09-18 15:17:14 -07:00
parent abe8315017
commit 9c0df6af54
4 changed files with 75 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
AUX apple_logo.png 1288 SHA256 df37ab9f9101806ba15d6ace785137908d8159e73c559e283d542098bfc5c940 SHA512 9ff0093083e102949360e8f3789a5a21da0d6b405b70572027239cfd149ec196e26f336cc33bab59a981cef74c6f35abb59bb72e01f1106d324fd4501d023742 WHIRLPOOL 2b9bd1059b0488cc7f42bf72c52078f44c1f7719342471dd58c09f6458cb87e98351450f806a2a73dd39bced0183de490034b59f43e7b8f32531e30450212123
AUX gsplus.desktop 140 SHA256 252aacc496009782952ff992f532daf27e9af49035adad185b99f802b7d3b4f9 SHA512 869129ab6b920ee094dad71501d1f3a6ed54205cc09f906e13a7319223c0edd6b16e72b19aac89bad92a0d0e06264906de80eb070c7895e3bdf2e45aee6d3ff7 WHIRLPOOL 2093739611eaab30b3d89a014f8b006546e615c038f6eed97db048d9465d3ca9a7d738aa289db2261dbb4213ab5eb246ffced62ce2b7397ee5c4f96d4c48a93c
DIST gsplus-0.14.tar.gz 14106237 SHA256 d5310c003201616b72ee509eae21b4ba665328d9b51fcada639d17513a249b3d SHA512 222c3483971932e49ffa24af035b2e1fbd219cc17ec6bf4e03aa488c6d86800d96037a967d41ff91c7f16f50b065355ee9014c89bc0b90c1033deed32825d35a WHIRLPOOL d2a224fcfbb81006ad5eab3c23b2a89fea467b6960a5973e7ba866a4f1da266076831c412b24e7918459bd1a9fe317173a9d45f86090c5603c9bab6a9e08ea31
DIST kegs-0.91.zip 13891691 SHA256 9ec59363660fc49edf041f5cd31f684bb50582be60e501196e60ac9ae55fe804 SHA512 73109d24d87ab4d2860d80ccf0f8ade30210e2c856d70fac694068dbf0028d14494c15db5d72a7b7105225cdb49a1926700d2d193f69ee5e918951f540a918c2 WHIRLPOOL 6700f1d59e24da4fd1d7628ca618f4e171926bef2a0949b13509317c793a27f99424ae3892e355abac7c8971d58efe8ffc93497d74d59a9182a40e814da78891
EBUILD gsplus-0.14.ebuild 1505 SHA256 7a82f8660fea4e95aafc296df507fd901960ef7db883a87d40c15cbbac7588d8 SHA512 b3cd75c3fb58ee59708ae399a78c0efefff2100ebacf66d6d9c5925a05b6ff3b8a1b4a387a0ff83ef0adb2c662ffaf8a7427fc94dc20c053e0fcaead2ed20a53 WHIRLPOOL 0cbe15f5f54984beee64434b09525c3f59ac848092af215c904c30422832a3d3c28ff76368d41eedc22a2d3542054e40a8aa286b2e43e9d4a32e6595c22ac48f

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@@ -0,0 +1,8 @@
[Desktop Entry]
Name=GSplus
Type=Application
Comment=Apple IIGS emulator
Exec=gsplus
TryExec=gsplus
Icon=gsplus
Categories=Emulator;System;

View File

@@ -0,0 +1,62 @@
EAPI="5"
inherit eutils
DESCRIPTION="Apple IIGS emulator, based on KEGS"
HOMEPAGE="https://apple2.gs/plus/"
SRC_URI="https://github.com/digarok/gsplus/archive/v${PV}.tar.gz -> ${P}.tar.gz
ftp://ftp.apple.asimov.net/pub/apple_II/emulators/kegs/Kegs%20v0.91%20%28with%20system%206%20and%20free%20games%29.zip -> kegs-0.91.zip"
DEPEND="net-libs/libpcap
media-libs/libsdl2
media-libs/sdl2-image
media-libs/freetype"
LICENSE="GPL"
SLOT="0"
KEYWORDS="amd64 x86"
src_unpack() {
mkdir ${WORKDIR}
unpack ${P}.tar.gz
unpack kegs-0.91.zip
cd ROMS
unpack ./rom1.zip
mv APPLE2GS.ROM rom1.rom
unpack ./rom3.zip
mv APPLE2GS.ROM2 rom3.rom
unpack ./System\ 6.0.1.zip
mv System\ 6\ and\ Free\ Games.hdv boot.po
cd ..
}
src_prepare() {
cd ${S}/src
ln -s vars_x86linux_sdl2 vars
}
src_compile() {
cd ${S}/src
emake
}
src_install() {
dobin ${S}/gsplus
dodir /usr/share/gsplus
insinto /usr/share/gsplus
newins ${WORKDIR}/ROMS/rom1.rom rom1.rom
newins ${WORKDIR}/ROMS/rom3.rom rom3.rom
newins ${WORKDIR}/ROMS/boot.po boot.po
doins ${S}/src/config.txt
newicon ${FILESDIR}/apple_logo.png ${PN}.png
newmenu ${FILESDIR}/${PN}.desktop ${PN}.desktop
}
pkg_postinst() {
elog ""
elog "To use, copy boot.po and config.txt from /usr/share/gsplus to"
elog "~/.GSplus. boot.po contains System 6.0.1 and some games."
elog "By default, ROM 3 firmware is loaded. ROM 01 is also available."
elog "When GSplus is running, press F4 to enter the settings menu."
}