# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit games S="${WORKDIR}" DESCRIPTION="a collection of new and high resolution textures for id's Quake" HOMEPAGE="http://www.quake.cz/winclan/qe1/" SRC_URI="http://koth.tvnet.hu/~q-retexture/20030815qe1.zip http://koth.tvnet.hu/~q-retexture/20040215qe1_update.zip" LICENSE="as-is" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND="app-arch/unzip" src_unpack () { ebegin "Unpacking main texture pack" unpack 20030815qe1.zip > /dev/null eend 0 ebegin "Unpacking texture update" unpack 20040215qe1_update.zip > /dev/null eend 0 } src_install () { dodoc credits.txt readme.txt && rm credits.txt readme.txt \ || die "dodoc failed" prepalldocs dohtml FAQ.html && rm FAQ.html || die "do html failed" # stderr is directed to /dev/null so as to ignore all of the error messages # that result mv trying to mv files that are already lower case to the # same file name for file in *; do $( mv ${file} $( echo ${file} | tr '[A-Z]' '[a-z]' ) 2>/dev/null); done dodir ${GAMES_DATADIR}/quake-data/id1/textures insinto ${GAMES_DATADIR}/quake-data/id1/textures doins * || die "doins failed" prepgamesdirs } pkg_postinst() { games_pkg_postinst echo einfo "Use a client like quakeforge to take advantage of these" echo }