games-fps/duke3d-data: revbump to update gog file
authorJulian Ospald <hasufell@gentoo.org>
Sun, 23 Aug 2015 19:23:10 +0000 (21:23 +0200)
committerJulian Ospald <hasufell@gentoo.org>
Sun, 23 Aug 2015 19:23:33 +0000 (21:23 +0200)
games-fps/duke3d-data/Manifest
games-fps/duke3d-data/duke3d-data-1.0-r3.ebuild [moved from games-fps/duke3d-data/duke3d-data-1.0-r2.ebuild with 77% similarity]

index 87fedf379202fc8765d757088e2c8e99a1ab5913..631018258c09c681bd555e444c898606598ee52c 100644 (file)
@@ -1 +1 @@
-DIST gog_duke_nukem_3d_1.0.0.7.tar.gz 30376296 SHA256 ba81c81d5f35f3aa424d30d9ab1c8441f8967bf4776cc85299efc95eea257ea3 SHA512 d0471bdc65b1030e080de382fea661d78348769d13bca2115ba1fb22aa2de54298bcaa4807c7315d0e2e4eefcc04bc9489d4e4c75fe0db1e99dd0ccd4e138450 WHIRLPOOL 4766138fd3decf78db00e7b6d6ad8128d742454573b56a880b94dba63b7de2438afc0e402e22eca0f0c6ca589f78ef6a28cfd0fbe5e62e40e3ce7427b2daa5fd
+DIST gog_duke_nukem_3d_atomic_edition_2.0.0.8.sh 31823668 SHA256 7c70e60c621a13bdc2cd34048022df638ad478cae646f338021f7deea411f63b SHA512 9c74299ac2db58aed4eb50367e15124bea6073cdba6ba5f403032a292d141ba734943af4c15e776cc0a4087a6f92c85d2413a1a525660b75aa0da457b2fac378 WHIRLPOOL dde14e901711b17c87d5edc92587ef4c999c1ffdcf9c67f5527c92b65cd1d23774149dee12c7e9055a476d0b266acbb23519602e32a80a99f47dc3f9d751b44d
similarity index 77%
rename from games-fps/duke3d-data/duke3d-data-1.0-r2.ebuild
rename to games-fps/duke3d-data/duke3d-data-1.0-r3.ebuild
index 0933f550621e0aada91dbd7aedb5fd74029b7e8d..e57d6ef5afea222c4bce6512508142e06f7d5728 100644 (file)
@@ -1,13 +1,13 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2015 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
 EAPI=5
 
 CDROM_OPTIONAL="yes"
-inherit eutils cdrom games
+inherit eutils cdrom unpacker games
 
-GOG_FILE="gog_duke_nukem_3d_1.0.0.7.tar.gz"
+GOG_FILE="gog_duke_nukem_3d_atomic_edition_2.0.0.8.sh"
 DESCRIPTION="Duke Nukem 3D data files"
 HOMEPAGE="http://www.3drealms.com/"
 SRC_URI="gog? ( ${GOG_FILE} )"
@@ -44,8 +44,13 @@ src_unpack() {
                        die "Error locating data files.";
                fi
        else
-               unpack "${GOG_FILE}"
-               cd "Duke Nukem 3D/data" || die
+               dd \
+                       ibs="$(head -n 519 "${DISTDIR}/${GOG_FILE}" | wc -c | tr -d ' ')" \
+                       skip=1 \
+                       if="${DISTDIR}/${GOG_FILE}" \
+                       of="${T}"/${GOG_FILE}.zip || die
+               unpack_zip "${T}"/${GOG_FILE}.zip
+               cd data/noarch/data || die
 
                # convert to lowercase
                find . -type f \
@@ -70,7 +75,7 @@ src_install() {
                # avoid double slash
                doins "${CDROM_ROOT}"/${DATAROOT}{duke3d.grp,duke.rts,game.con,user.con,demo?.dmo,defs.con}
        else
-               doins "Duke Nukem 3D/data"/{duke3d.grp,duke.rts,game.con,user.con,demo?.dmo,defs.con}
+               doins data/noarch/data/{duke3d.grp,duke.rts,game.con,user.con,demo?.dmo,defs.con}
        fi
 
        prepgamesdirs