12345678910111213141516171819202122232425262728293031323334353637 |
- # Copyright 1999-2015 Gentoo Foundation
- # Distributed under the terms of the GNU General Public License v2
- EAPI=5
- inherit eutils games
- DESCRIPTION="The classic Team Fortress Quake World mod"
- HOMEPAGE="http://www.planetfortress.com/teamfortress/"
- SRC_URI="mirror://gentoo/tf28.zip
- mirror://gentoo/tf29qw.zip"
- LICENSE="quake1-teamfortress"
- SLOT="0"
- KEYWORDS="amd64 x86"
- IUSE=""
- RDEPEND=""
- DEPEND="app-arch/unzip"
- S=${WORKDIR}
- src_unpack() {
- echo ">>> Unpacking tf28.zip to ${PWD}"
- unzip -qoL "${DISTDIR}"/tf28.zip || die "unpacking tf28.zip failed"
- cd fortress
- echo ">>> Unpacking tf29qw.zip to ${PWD}"
- unzip -qoL "${DISTDIR}"/tf29qw.zip || die "unpacking tf29qw.zip failed"
- edos2unix $(find . -name '*.txt' -o -name '*.cfg')
- mv server.cfg server.example.cfg
- }
- src_install() {
- insinto "${GAMES_DATADIR}/quake1"
- doins -r *
- prepgamesdirs
- }
|