summaryrefslogtreecommitdiffstats
path: root/system/unshieldv3
diff options
context:
space:
mode:
Diffstat (limited to 'system/unshieldv3')
-rw-r--r--system/unshieldv3/README13
-rw-r--r--system/unshieldv3/git2tarxz.sh44
-rw-r--r--system/unshieldv3/slack-desc19
-rw-r--r--system/unshieldv3/unshieldv3.1115
-rw-r--r--system/unshieldv3/unshieldv3.SlackBuild89
-rw-r--r--system/unshieldv3/unshieldv3.info10
-rw-r--r--system/unshieldv3/unshieldv3.rst92
7 files changed, 382 insertions, 0 deletions
diff --git a/system/unshieldv3/README b/system/unshieldv3/README
new file mode 100644
index 0000000000..48f15ea193
--- /dev/null
+++ b/system/unshieldv3/README
@@ -0,0 +1,13 @@
+unshieldv3 (extract v3 InstallShield files)
+
+unshieldv3 is a command line tool to extract the *.Z InstallShield v3
+packages many old windows games were distributed as.
+
+The files unshieldv3 supports are identified by the file command as
+"InstallShield Z archive Data", and begin with a hex signature of
+13 5d 65 8c 3a 01 02.
+
+See also:
+- unshield, for other types of InstallShield files.
+- isextract, for another v3 extractor.
+- cabextract, for cabinet (.cab) files.
diff --git a/system/unshieldv3/git2tarxz.sh b/system/unshieldv3/git2tarxz.sh
new file mode 100644
index 0000000000..2e18550cd0
--- /dev/null
+++ b/system/unshieldv3/git2tarxz.sh
@@ -0,0 +1,44 @@
+#!/bin/sh
+
+# Create source tarball from git repo, with generated version
+# number.
+
+# Note that this script doesn't need to be run as root. It does
+# need to be able to write to the current directory it's run from.
+
+# Takes one optional argument, which is the commit or tag to create
+# a tarball of. With no arg, HEAD is used.
+
+PRGNAM=unshieldv3
+CLONE_URL=https://github.com/wfr/unshieldv3.git
+
+set -e
+
+GITDIR=$( mktemp -dt $PRGNAM.git.XXXXXX )
+rm -rf $GITDIR
+git clone $CLONE_URL $GITDIR
+
+CWD="$( pwd )"
+cd $GITDIR
+
+if [ "$1" != "" ]; then
+ git reset --hard "$1" || exit 1
+fi
+
+GIT_SHA=$( git rev-parse --short HEAD )
+
+DATE=$( git log --date=format:%Y%m%d --format=%cd | head -1 )
+
+VERSION=${DATE}_${GIT_SHA}
+
+rm -rf .git
+find . -name .gitignore -print0 | xargs -0 rm -f
+
+cd "$CWD"
+rm -rf $PRGNAM-$VERSION $PRGNAM-$VERSION.tar.xz
+mv $GITDIR $PRGNAM-$VERSION
+tar cvfJ $PRGNAM-$VERSION.tar.xz $PRGNAM-$VERSION
+
+echo
+echo "Created tarball: $PRGNAM-$VERSION.tar.xz"
+echo "VERSION=$VERSION"
diff --git a/system/unshieldv3/slack-desc b/system/unshieldv3/slack-desc
new file mode 100644
index 0000000000..e04fce7f23
--- /dev/null
+++ b/system/unshieldv3/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+unshieldv3: unshieldv3 (extract v3 InstallShield files)
+unshieldv3:
+unshieldv3: unshieldv3 is a command line tool to extract the *.Z InstallShield v3
+unshieldv3: packages many old windows games were distributed as.
+unshieldv3:
+unshieldv3: The files unshieldv3 supports are identified by the file command as
+unshieldv3: "InstallShield Z archive Data", and begin with a hex signature of
+unshieldv3: 13 5d 65 8c 3a 01 02.
+unshieldv3:
+unshieldv3:
+unshieldv3:
diff --git a/system/unshieldv3/unshieldv3.1 b/system/unshieldv3/unshieldv3.1
new file mode 100644
index 0000000000..8a9f51c546
--- /dev/null
+++ b/system/unshieldv3/unshieldv3.1
@@ -0,0 +1,115 @@
+.\" Man page generated from reStructuredText.
+.
+.
+.nr rst2man-indent-level 0
+.
+.de1 rstReportMargin
+\\$1 \\n[an-margin]
+level \\n[rst2man-indent-level]
+level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
+-
+\\n[rst2man-indent0]
+\\n[rst2man-indent1]
+\\n[rst2man-indent2]
+..
+.de1 INDENT
+.\" .rstReportMargin pre:
+. RS \\$1
+. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
+. nr rst2man-indent-level +1
+.\" .rstReportMargin post:
+..
+.de UNINDENT
+. RE
+.\" indent \\n[an-margin]
+.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
+.nr rst2man-indent-level -1
+.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
+.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
+..
+.TH "UNSHIELDV3" 1 "2022-12-28" "0.2.1" "SlackBuilds.org"
+.SH NAME
+unshieldv3 \- Extract InstallShield v3 archives
+.\" RST source for unshieldv3(1) man page. Convert with:
+.
+.\" rst2man.py unshieldv3.rst > unshieldv3.1
+.
+.\" rst2man.py comes from the SBo development/docutils package.
+.
+.SH SYNOPSIS
+.sp
+unshieldv3 \fBinfo\fP \fIfile.z\fP
+.sp
+unshieldv3 \fBlist\fP [\fB\-v\fP] \fIfile.z\fP
+.sp
+unshieldv3 \fBextract\fP \fIfile.z\fP \fIoutput\-dir\fP
+.SH DESCRIPTION
+.sp
+\fBunshieldv3\fP is a command line tool to extract the .Z InstallShield v3
+packages many old windows games were distributed as.
+.sp
+The files \fBunshieldv3\fP supports normally have a \fB\&.Z\fP extension, and can be
+identified by the \fBfile\fP(1) command:
+.INDENT 0.0
+.INDENT 3.5
+.sp
+.nf
+.ft C
+$ file data.Z
+data.z: InstallShield Z archive Data
+.ft P
+.fi
+.UNINDENT
+.UNINDENT
+.sp
+\&...or by the hex signature at the start of the file:
+.INDENT 0.0
+.INDENT 3.5
+.sp
+.nf
+.ft C
+$ head \-c6 data.Z | xxd
+00000000: 135d 658c 3a01 .]e.:.
+.ft P
+.fi
+.UNINDENT
+.UNINDENT
+.sp
+If \fBfile\fP says "compress\(aqd data" or similar, your .Z file isn\(aqt an
+InstallShield archive; it\(aqs compressed with the old UNIX compress
+command, and can be extracted with \fBuncompress\fP(1) or \fBgzip\fP(1).
+.sp
+When extracting, \fBunshieldv3\fP preserves the directory structure
+inside the archive. This is unlike \fBisextract\fP(1), which writes all
+the files in the same directory.
+.SH OPTIONS
+.sp
+Options may not be abbreviated.
+.INDENT 0.0
+.TP
+.B \fBinfo\fP
+Show archive metadata: number of files, compressed size, and
+uncompressed size.
+.TP
+.B \fBlist\fP
+List contents of archive. With \fB\-v\fP, shows the size and timestamp
+of each file.
+.TP
+.B \fBextract\fP
+Extract archive. \fIoutput\-dir\fP is required, but will not be created if
+it doesn\(aqt exist. Use \fB\&.\fP to extract to the current directory.
+.UNINDENT
+.SH COPYRIGHT
+.sp
+See the file /usr/doc/unshieldv3\-0.2.1/LICENSE for license information.
+.SH AUTHORS
+.sp
+unshieldv3 was written by Wolfgang Frisch.
+.sp
+This man page written for the SlackBuilds.org project
+by B. Watson, and is licensed under the WTFPL.
+.SH SEE ALSO
+.sp
+\fBisextract\fP(1), \fBunshield\fP(1), \fBcabextract\fP(1)
+.\" Generated by docutils manpage writer.
+.
diff --git a/system/unshieldv3/unshieldv3.SlackBuild b/system/unshieldv3/unshieldv3.SlackBuild
new file mode 100644
index 0000000000..b58994e9c4
--- /dev/null
+++ b/system/unshieldv3/unshieldv3.SlackBuild
@@ -0,0 +1,89 @@
+#!/bin/bash
+
+# Slackware build script for unshieldv3
+
+# Written by B. Watson (urchlay@slackware.uk)
+
+# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+
+# 20221228 bkw: updated for v0.2.1 (including man page). Also add
+# test-data to the doc dir (it's small, and might be useful).
+
+cd $(dirname $0) ; CWD=$(pwd)
+
+PRGNAM=unshieldv3
+VERSION=${VERSION:-0.2.1}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i586 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION
+chown -R root:root .
+find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
+ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
+
+mkdir -p build
+cd build
+ cmake \
+ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release ..
+ # use my flags or die!
+ sed -i 's,-O3 ,,' CMakeCache.txt
+ make VERBOSE=1
+ make install/strip DESTDIR=$PKG
+cd ..
+
+# man page written by SlackBuild author.
+mkdir -p $PKG/usr/man/man1
+gzip -9c < $CWD/$PRGNAM.1 > $PKG/usr/man/man1/$PRGNAM.1.gz
+
+PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION
+mkdir -p $PKGDOC
+cp -a README* LICENSE test-data $PKGDOC
+cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/system/unshieldv3/unshieldv3.info b/system/unshieldv3/unshieldv3.info
new file mode 100644
index 0000000000..c5c65275a9
--- /dev/null
+++ b/system/unshieldv3/unshieldv3.info
@@ -0,0 +1,10 @@
+PRGNAM="unshieldv3"
+VERSION="0.2.1"
+HOMEPAGE="https://github.com/wfr/unshieldv3/"
+DOWNLOAD="https://github.com/wfr/unshieldv3/archive/v0.2.1/unshieldv3-0.2.1.tar.gz"
+MD5SUM="e62b7d9cde2b5c75e0a3d16bf808ffbe"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES=""
+MAINTAINER="B. Watson"
+EMAIL="urchlay@slackware.uk"
diff --git a/system/unshieldv3/unshieldv3.rst b/system/unshieldv3/unshieldv3.rst
new file mode 100644
index 0000000000..4e7a1e9dbb
--- /dev/null
+++ b/system/unshieldv3/unshieldv3.rst
@@ -0,0 +1,92 @@
+.. RST source for unshieldv3(1) man page. Convert with:
+.. rst2man.py unshieldv3.rst > unshieldv3.1
+.. rst2man.py comes from the SBo development/docutils package.
+
+.. |version| replace:: 0.2.1
+.. |date| date::
+
+==========
+unshieldv3
+==========
+
+---------------------------------
+Extract InstallShield v3 archives
+---------------------------------
+
+:Manual section: 1
+:Manual group: SlackBuilds.org
+:Date: |date|
+:Version: |version|
+
+SYNOPSIS
+========
+
+unshieldv3 **info** *file.z*
+
+unshieldv3 **list** [**-v**] *file.z*
+
+unshieldv3 **extract** *file.z* *output-dir*
+
+DESCRIPTION
+===========
+
+**unshieldv3** is a command line tool to extract the .Z InstallShield v3
+packages many old windows games were distributed as.
+
+The files **unshieldv3** supports normally have a **.Z** extension, and can be
+identified by the **file**\(1) command:
+
+::
+
+ $ file data.Z
+ data.z: InstallShield Z archive Data
+
+...or by the hex signature at the start of the file:
+
+::
+
+ $ head -c6 data.Z | xxd
+ 00000000: 135d 658c 3a01 .]e.:.
+
+If **file** says "compress'd data" or similar, your .Z file isn't an
+InstallShield archive; it's compressed with the old UNIX compress
+command, and can be extracted with **uncompress**\(1) or **gzip**\(1).
+
+When extracting, **unshieldv3** preserves the directory structure
+inside the archive. This is unlike **isextract**\(1), which writes all
+the files in the same directory.
+
+OPTIONS
+=======
+
+Options may not be abbreviated.
+
+**info**
+ Show archive metadata: number of files, compressed size, and
+ uncompressed size.
+
+**list**
+ List contents of archive. With **-v**, shows the size and timestamp
+ of each file.
+
+**extract**
+ Extract archive. *output-dir* is required, but will not be created if
+ it doesn't exist. Use **.** to extract to the current directory.
+
+COPYRIGHT
+=========
+
+See the file /usr/doc/unshieldv3-|version|/LICENSE for license information.
+
+AUTHORS
+=======
+
+unshieldv3 was written by Wolfgang Frisch.
+
+This man page written for the SlackBuilds.org project
+by B. Watson, and is licensed under the WTFPL.
+
+SEE ALSO
+========
+
+**isextract**\(1), **unshield**\(1), **cabextract**\(1)