71 lines
1.7 KiB
Bash
71 lines
1.7 KiB
Bash
# Copyright 1999-2014 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: /var/cvsroot/gentoo-x86/games-rpg/sacred-gold/sacred-gold-1.0.01.ebuild,v 1.5 2014/10/15 08:28:29 pacho Exp $
|
|
|
|
EAPI=5
|
|
|
|
inherit versionator eutils cdrom unpacker games
|
|
|
|
PV_MAJOR=$(get_version_component_range 1-2)
|
|
MY_P=sacred-${PV_MAJOR}-${PV}
|
|
|
|
DESCRIPTION="Action role-playing game"
|
|
HOMEPAGE="http://linuxgamepublishing.com/info.php?id=sacred"
|
|
SRC_URI="http://updatefiles.linuxgamepublishing.com/sacred/${MY_P}-x86.run"
|
|
|
|
LICENSE="all-rights-reserved GPL-2 LGPL-2"
|
|
SLOT="0"
|
|
KEYWORDS="-* ~amd64 ~x86"
|
|
IUSE=""
|
|
RESTRICT="mirror bindist strip"
|
|
|
|
RDEPEND="
|
|
|| (
|
|
(
|
|
x11-libs/libX11[abi_x86_32(-)]
|
|
x11-libs/libXext[abi_x86_32(-)]
|
|
x11-libs/libXi[abi_x86_32(-)]
|
|
virtual/opengl[abi_x86_32(-)]
|
|
)
|
|
amd64? (
|
|
app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)]
|
|
app-emulation/emul-linux-x86-xlibs[-abi_x86_32(-)]
|
|
)
|
|
)
|
|
"
|
|
DEPEND=""
|
|
|
|
S=${WORKDIR}
|
|
|
|
src_unpack() {
|
|
cdrom_get_cds .data/bin/Linux/x86/sacred
|
|
ln -sfn "${CDROM_ROOT}"/.data cd
|
|
unpack ./cd/data/data.tar.gz
|
|
rm -f cd
|
|
cp -f "${CDROM_ROOT}"/.data/bin/Linux/x86/sacred* . || die
|
|
cp -f "${CDROM_ROOT}"/README* . || die
|
|
cp -f "${CDROM_ROOT}"/manual.pdf . || die
|
|
|
|
mkdir -p "patch"
|
|
cd "patch"
|
|
unpack_makeself ${MY_P}-x86.run
|
|
bin/Linux/x86/loki_patch patch.dat "${S}" || die "loki_patch failed"
|
|
cd "${S}"
|
|
rm -rf "patch"
|
|
|
|
mv lib/lib{1,2}/* lib
|
|
rmdir lib/lib{1,2}
|
|
}
|
|
|
|
src_install() {
|
|
dir=${GAMES_PREFIX_OPT}/${PN}
|
|
|
|
insinto "${dir}"
|
|
mv * "${D}/${dir}" || die
|
|
|
|
games_make_wrapper ${PN} ./sacred "${dir}" "${dir}"/lib
|
|
newicon "${CDROM_ROOT}"/.data/icon.xpm ${PN}.xpm
|
|
make_desktop_entry ${PN} "Sacred - Gold" ${PN}
|
|
|
|
prepgamesdirs
|
|
}
|