1 # Copyright © 2011, 2015 Nick Bowler
2 # License GPLv3+: GNU General Public License version 3 or later.
3 # There is NO WARRANTY, to the extent permitted by law.
11 DESCRIPTION="Crack into virtual computer systems"
12 HOMEPAGE="http://www.uplink.co.uk"
13 SRC_URI="amd64? ( ${MY_P}_amd64.tar.gz )
14 x86? ( ${MY_P}_i386.tar.gz )"
18 KEYWORDS="~amd64 ~x86"
21 DEPEND="dev-util/patchelf"
22 RDEPEND="media-libs/libsdl[opengl]
23 media-libs/sdl-mixer[mikmod]
32 use amd64 && root=uplink-x64
33 use x86 && root=uplink-x86
34 test -n "$root" || die "unsupported architecture"
36 mv "$root" "$P" || die
40 local useless_libs="libjpeg.so.62 libmikmod.so.2 libz.so.1"
43 use amd64 && exe=uplink.bin.x86_64
44 use x86 && exe=uplink.bin.x86
45 test -n "$exe" || die "unsupported architecture"
47 for lib in $useless_libs; do
48 patchelf --remove-needed "$lib" "$exe" || die
53 local dir=$GAMES_PREFIX_OPT/$PN
59 use amd64 && exe=uplink.bin.x86_64
60 use x86 && exe=uplink.bin.x86
61 test -n "$exe" || die "unsupported architecture"
67 make_desktop_entry "$PN" Uplink uplink
68 games_make_wrapper "$PN" "$dir/$exe"