games-fps/duke3d-data: simplify unpack phase
authorJulian Ospald <hasufell@gentoo.org>
Sun, 23 Aug 2015 20:24:12 +0000 (22:24 +0200)
committerJulian Ospald <hasufell@gentoo.org>
Sun, 23 Aug 2015 20:24:36 +0000 (22:24 +0200)
Apparently, unzip can handle the leading shell script fuzz just fine.

games-fps/duke3d-data/duke3d-data-1.0-r3.ebuild

index e57d6ef5afea222c4bce6512508142e06f7d5728..4be3b5b1c5e30b5295551bbd51cb174ce109a472 100644 (file)
@@ -44,12 +44,7 @@ src_unpack() {
                        die "Error locating data files.";
                fi
        else
-               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
+               unpack_zip "${DISTDIR}"/${GOG_FILE}
                cd data/noarch/data || die
 
                # convert to lowercase