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
4 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
13 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
7 years ago
|
|
||
4 years ago
|
EAPI=7
|
||
13 years ago
|
|
||
4 years ago
|
MY_PV=$(ver_rs 1- '')
|
||
13 years ago
|
MY_PN="quake"
|
||
|
|
||
|
DESCRIPTION="Demo data for Quake 1"
|
||
7 years ago
|
HOMEPAGE="https://en.wikipedia.org/wiki/Quake_I"
|
||
13 years ago
|
SRC_URI="mirror://idsoftware/${MY_PN}/${MY_PN}${MY_PV}.zip"
|
||
4 years ago
|
S="${WORKDIR}"
|
||
13 years ago
|
|
||
|
# See licinfo.txt
|
||
|
LICENSE="quake1-demodata"
|
||
|
SLOT="0"
|
||
7 years ago
|
KEYWORDS="~amd64 ~x86"
|
||
13 years ago
|
IUSE="symlink"
|
||
|
|
||
5 years ago
|
RDEPEND="symlink? ( !games-fps/quake1-data )"
|
||
4 years ago
|
BDEPEND="
|
||
|
app-arch/lha
|
||
|
app-arch/unzip
|
||
|
"
|
||
13 years ago
|
|
||
4 years ago
|
dir=usr/share/${MY_PN}1
|
||
13 years ago
|
|
||
|
pkg_setup() {
|
||
|
if has_version "games-fps/quake1-data" ; then
|
||
|
ewarn "games-fps/quake1-data already includes the demo data,"
|
||
|
ewarn "so this installation is not very useful."
|
||
|
fi
|
||
|
}
|
||
|
|
||
|
src_unpack() {
|
||
|
unpack ${A}
|
||
|
|
||
|
# File rename for bug #159100
|
||
4 years ago
|
mv resource.{1,x} || die
|
||
13 years ago
|
|
||
|
lha xfq resource.x || die "lha failed"
|
||
|
# Don't want to conflict with the cdinstall files
|
||
4 years ago
|
mv ID1 demo || die
|
||
13 years ago
|
}
|
||
|
|
||
|
src_install() {
|
||
4 years ago
|
insinto ${dir}
|
||
10 years ago
|
doins -r demo
|
||
13 years ago
|
|
||
4 years ago
|
dodoc *.TXT
|
||
13 years ago
|
|
||
|
if use symlink ; then
|
||
|
# Make the demo the default, so that people can just run it,
|
||
|
# without having to mess with command-line options.
|
||
4 years ago
|
cd "${ED}/${dir}" || die
|
||
|
ln -sfn demo id1 || die
|
||
13 years ago
|
fi
|
||
|
}
|
||
|
|
||
|
pkg_postinst() {
|
||
|
elog "This is just the demo data."
|
||
|
elog "You will still need a Quake 1 client, to play, such as darkplaces."
|
||
|
echo
|
||
|
|
||
|
if use symlink ; then
|
||
|
elog "id1 has been symlinked to demo, for convenience, within:"
|
||
|
elog "${dir}"
|
||
|
echo
|
||
|
fi
|
||
|
}
|