1 # Copyright © 2021 Nick Bowler
2 # License GPLv3+: GNU General Public License version 3 or any later version.
3 # This is free software: you are free to change and redistribute it.
4 # There is NO WARRANTY, to the extent permitted by law.
8 inherit desktop wrapper xdg
10 DESCRIPTION="Sci-fi visual programming puzzle game"
11 HOMEPAGE="https://www.zachtronics.com/spacechem/ https://www.gog.com/game/spacechem"
12 SRC_URI="spacechem_1016_40617.sh"
18 KEYWORDS="~amd64 ~x86"
20 RDEPEND="dev-lang/mono
21 media-libs/libsdl2[opengl]
22 media-libs/sdl2-mixer[vorbis]
23 media-libs/sdl2-image[png]"
24 BDEPEND="app-arch/unzip"
27 unzip -qd "$P" "$DISTDIR/$A"
31 *) die "failed to unpack archive" ;;
37 doins data/noarch/game/[!gL]*.* data/noarch/game/mono*
38 doins -r data/noarch/game/{fonts,images,lang,music,sounds,text}
41 doexe data/noarch/game/{SpaceChem,rgb2theora}
43 dodoc data/noarch/game/LICENSE.txt
45 newicon -s 128 data/noarch/game/images/icon.png spacechem.png
46 make_wrapper "spacechem" "mono SpaceChem.exe" "/opt/$PN"
47 make_desktop_entry spacechem