# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit games PAKFILE="textures32bit-${PV}.zip" DESCRIPTION="32-bit high-resolution textures for enhanced Quake 2 engines" HOMEPAGE="http://qudos.quakedev.com/" SRC_URI="http://qudos.quakedev.com/linux/quake2/textures/${PAKFILE}" LICENSE="as-is" SLOT="0" KEYWORDS="~x86" IUSE="" RDEPEND="" DEPEND="app-arch/unzip" S=${WORKDIR} dir=${GAMES_DATADIR}/quake2 src_unpack() { unzip "${DISTDIR}/${PAKFILE}" Readme.txt || die "unzip failed" } src_install() { insinto "${dir}"/baseq2 # The file is simply renamed from .zip to .pk3 newins "${DISTDIR}/${PAKFILE}" "textures-32bit.pk3" || die "newins failed" dodoc Readme.txt prepgamesdirs } pkg_postinst() { games_pkg_postinst einfo "Use an enhanced Quake 2 client to take advantage" einfo "of these textures, e.g. kmquake2 or qudos." echo ewarn "quake2-icculus looks *worse* with these textures." echo }