diff options
author | Mike Frysinger <vapier@gentoo.org> | 2003-11-30 11:25:58 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2003-11-30 11:25:58 +0000 |
commit | b030e2aab99eb7ba3acd821a895814d07045ca9c (patch) | |
tree | 422a1166b0dfdeedd32bfb4a252f7664c05b788d /games-server/halflife-server | |
parent | pdv_unpack :D (diff) | |
download | gentoo-2-b030e2aab99eb7ba3acd821a895814d07045ca9c.tar.gz gentoo-2-b030e2aab99eb7ba3acd821a895814d07045ca9c.tar.bz2 gentoo-2-b030e2aab99eb7ba3acd821a895814d07045ca9c.zip |
use unpack_pdv to be cleaner
Diffstat (limited to 'games-server/halflife-server')
-rw-r--r-- | games-server/halflife-server/halflife-server-3.1.1.0.ebuild | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/games-server/halflife-server/halflife-server-3.1.1.0.ebuild b/games-server/halflife-server/halflife-server-3.1.1.0.ebuild index 245d221e126a..2049a87286d7 100644 --- a/games-server/halflife-server/halflife-server-3.1.1.0.ebuild +++ b/games-server/halflife-server/halflife-server-3.1.1.0.ebuild @@ -1,36 +1,35 @@ # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-server/halflife-server/halflife-server-3.1.1.0.ebuild,v 1.2 2003/10/20 19:12:16 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-server/halflife-server/halflife-server-3.1.1.0.ebuild,v 1.3 2003/11/30 11:25:58 vapier Exp $ -inherit games +inherit games eutils -MY_PN=hlds_l_3110_full +MY_PV=${PV//.} +MY_PN=hlds_l_${MY_PV}_full DESCRIPTION="Halflife Linux Server" -SRC_URI="gentoo://mirror/${MY_PN}.bin" HOMEPAGE="http://www.valve.com/" +SRC_URI="${MY_PN}.bin" LICENSE="ValveServer" SLOT="0" KEYWORDS="x86" -RESTRICT="nostrip" # fetch +RESTRICT="nostrip fetch DEPEND="sys-apps/util-linux" RDEPEND="dedicated? ( app-misc/screen )" S=${WORKDIR}/hlds_l -#pkg_nofetch() { -# einfo "Please goto fileplanet and d/l ${MY_BIN}" -# einfo "http://www.fileplanet.com/files/50000/58368.shtml" -#} +pkg_nofetch() { + einfo "Please goto fileplanet and d/l ${MY_BIN}" + einfo "http://www.fileplanet.com/files/50000/58368.shtml" +} src_unpack() { - local metastart=`tail -c 8 ${DISTDIR}/${MY_PN}.bin | head -c 4 | hexdump -e \"%i\"` - local newsize=$(expr $(ls -al ${DISTDIR}/${MY_PN}.bin | awk '{print $5}') - $metastart) - tail -c ${newsize} ${DISTDIR}/${MY_PN}.bin > ${MY_PN}.bin - echo ">>> Unpacking ${MY_PN}.bin to ${S}" - tar -zxf ${MY_PN}.bin - rm ${MY_PN}.bin + unpack_pdv ${MY_PN}.bin 4 + echo ">>> Unpacking ${MY_PN}.tar.gz to ${S}" + tar -zxf ${MY_PN}.tar.gz + rm ${MY_PN}.tar.gz } src_install() { |