You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
71 lines
1.4 KiB
71 lines
1.4 KiB
3 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
11 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
3 years ago
|
EAPI=7
|
||
11 years ago
|
|
||
3 years ago
|
inherit desktop gnome2-utils unpacker wrapper
|
||
11 years ago
|
|
||
|
TIMESTAMP="${PV:4:2}${PV:6:2}${PV:0:4}"
|
||
|
DESCRIPTION="Ghost story, told using first-person gaming technologies"
|
||
|
HOMEPAGE="http://dear-esther.com/"
|
||
|
SRC_URI="dearesther-linux-${TIMESTAMP}-bin"
|
||
3 years ago
|
S="${WORKDIR}"/data
|
||
11 years ago
|
|
||
|
LICENSE="all-rights-reserved"
|
||
|
SLOT="0"
|
||
7 years ago
|
KEYWORDS="-* ~amd64 ~x86"
|
||
3 years ago
|
|
||
11 years ago
|
RESTRICT="bindist fetch splitdebug"
|
||
|
|
||
3 years ago
|
MYGAMEDIR=opt/${PN}
|
||
|
QA_PREBUILT="
|
||
|
${MYGAMEDIR#/}/dearesther_linux
|
||
|
${MYGAMEDIR#/}/bin/*.so*
|
||
|
"
|
||
11 years ago
|
|
||
3 years ago
|
# TODO: unbundle libSDL2
|
||
10 years ago
|
RDEPEND="
|
||
9 years ago
|
>=media-libs/freetype-2.5.0.1[abi_x86_32(-)]
|
||
|
>=media-libs/libsdl-1.2.15-r5[abi_x86_32(-)]
|
||
|
>=media-libs/openal-1.15.1[abi_x86_32(-)]
|
||
|
x11-libs/libX11[abi_x86_32(-)]
|
||
3 years ago
|
virtual/opengl[abi_x86_32(-)]
|
||
|
"
|
||
|
BDEPEND="app-arch/unzip"
|
||
11 years ago
|
|
||
|
pkg_nofetch() {
|
||
|
einfo "Please buy & download ${SRC_URI} from:"
|
||
|
einfo " ${HOMEPAGE}"
|
||
6 years ago
|
einfo "and move it to your DISTDIR directory."
|
||
11 years ago
|
einfo
|
||
|
}
|
||
|
|
||
|
src_unpack() {
|
||
|
unpack_zip ${A}
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
3 years ago
|
insinto ${MYGAMEDIR}
|
||
11 years ago
|
doins -r bin dearesther platform dearesther_linux
|
||
|
|
||
|
doicon -s 256 dearesther.png
|
||
|
make_desktop_entry "${PN}" "Dear Esther" dearesther
|
||
3 years ago
|
make_wrapper ${PN} "./dearesther_linux -game dearesther" "${MYGAMEDIR}" "${MYGAMEDIR}/bin"
|
||
11 years ago
|
|
||
|
dodoc README-linux.txt
|
||
|
|
||
3 years ago
|
fperms +x ${MYGAMEDIR}/dearesther_linux
|
||
11 years ago
|
}
|
||
|
|
||
|
pkg_preinst() {
|
||
|
gnome2_icon_savelist
|
||
|
}
|
||
|
|
||
|
pkg_postinst() {
|
||
|
gnome2_icon_cache_update
|
||
|
}
|
||
|
|
||
|
pkg_postrm() {
|
||
|
gnome2_icon_cache_update
|
||
|
}
|