system/unshieldv3: Updated for version 0.2.1.

Signed-off-by: B. Watson <urchlay@slackware.uk>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
B. Watson 2022-12-28 22:31:57 -05:00 committed by Willy Sudiarto Raharjo
parent c91a3cdf89
commit 6dee9f4f96
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
4 changed files with 66 additions and 30 deletions

View File

@ -27,7 +27,7 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
.. ..
.TH "UNSHIELDV3" 1 "2022-01-12" "1.30_beta+20190930_0037ff5" "SlackBuilds.org" .TH "UNSHIELDV3" 1 "2022-12-28" "0.2.1" "SlackBuilds.org"
.SH NAME .SH NAME
unshieldv3 \- Extract InstallShield v3 archives unshieldv3 \- Extract InstallShield v3 archives
.\" RST source for unshieldv3(1) man page. Convert with: .\" RST source for unshieldv3(1) man page. Convert with:
@ -38,9 +38,11 @@ unshieldv3 \- Extract InstallShield v3 archives
. .
.SH SYNOPSIS .SH SYNOPSIS
.sp .sp
unshieldv3 list \fIfile.z\fP unshieldv3 \fBinfo\fP \fIfile.z\fP
.sp .sp
unshieldv3 extract \fIfile.z\fP [\fIoutput\-dir\fP] unshieldv3 \fBlist\fP [\fB\-v\fP] \fIfile.z\fP
.sp
unshieldv3 \fBextract\fP \fIfile.z\fP \fIoutput\-dir\fP
.SH DESCRIPTION .SH DESCRIPTION
.sp .sp
\fBunshieldv3\fP is a command line tool to extract the .Z InstallShield v3 \fBunshieldv3\fP is a command line tool to extract the .Z InstallShield v3
@ -73,7 +75,7 @@ $ head \-c6 data.Z | xxd
.UNINDENT .UNINDENT
.UNINDENT .UNINDENT
.sp .sp
If \fBfile\fP says "compress\(aqd data" or similar, your file isn\(aqt an 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 InstallShield archive; it\(aqs compressed with the old UNIX compress
command, and can be extracted with \fBuncompress\fP(1) or \fBgzip\fP(1). command, and can be extracted with \fBuncompress\fP(1) or \fBgzip\fP(1).
.sp .sp
@ -85,17 +87,21 @@ the files in the same directory.
Options may not be abbreviated. Options may not be abbreviated.
.INDENT 0.0 .INDENT 0.0
.TP .TP
.B \fBinfo\fP
Show archive metadata: number of files, compressed size, and
uncompressed size.
.TP
.B \fBlist\fP .B \fBlist\fP
List contents of archive. List contents of archive. With \fB\-v\fP, shows the size and timestamp
of each file.
.TP .TP
.B \fBextract\fP .B \fBextract\fP
Extract archive. If an \fIoutput\-dir\fP is given, extracted files will be written Extract archive. \fIoutput\-dir\fP is required, but will not be created if
there (the \fIoutput\-dir\fP must already exist). Without \fIoutput\-dir\fP, the current it doesn\(aqt exist. Use \fB\&.\fP to extract to the current directory.
directory is used.
.UNINDENT .UNINDENT
.SH COPYRIGHT .SH COPYRIGHT
.sp .sp
See the file /usr/doc/unshieldv3\-1.30_beta+20190930_0037ff5/LICENSE for license information. See the file /usr/doc/unshieldv3\-0.2.1/LICENSE for license information.
.SH AUTHORS .SH AUTHORS
.sp .sp
unshieldv3 was written by Wolfgang Frisch. unshieldv3 was written by Wolfgang Frisch.

View File

@ -6,12 +6,16 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. # 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) cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=unshieldv3 PRGNAM=unshieldv3
VERSION=${VERSION:-20190930_0037ff5} VERSION=${VERSION:-0.2.1}
BUILD=${BUILD:-1} BUILD=${BUILD:-1}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
case "$( uname -m )" in case "$( uname -m )" in
@ -30,7 +34,19 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp} OUTPUT=${OUTPUT:-/tmp}
# No flags needed, qmake will use the CXXFLAGS qt5 was built with. 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 set -e
@ -38,28 +54,36 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT mkdir -p $TMP $PKG $OUTPUT
cd $TMP cd $TMP
rm -rf $PRGNAM-$VERSION rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.xz tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION cd $PRGNAM-$VERSION
chown -R root:root . chown -R root:root .
find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
\! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
qmake mkdir -p build
make cd build
cmake \
mkdir -p $PKG/usr/{bin,man/man1} -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
install -s -m0755 $PRGNAM $PKG/usr/bin -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. # man page written by SlackBuild author.
mkdir -p $PKG/usr/man/man1
gzip -9c < $CWD/$PRGNAM.1 > $PKG/usr/man/man1/$PRGNAM.1.gz gzip -9c < $CWD/$PRGNAM.1 > $PKG/usr/man/man1/$PRGNAM.1.gz
PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION
mkdir -p $PKGDOC mkdir -p $PKGDOC
cp -a README* LICENSE $PKGDOC cp -a README* LICENSE test-data $PKGDOC
cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild
mkdir -p $PKG/install mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE

View File

@ -1,8 +1,8 @@
PRGNAM="unshieldv3" PRGNAM="unshieldv3"
VERSION="20190930_0037ff5" VERSION="0.2.1"
HOMEPAGE="https://github.com/wfr/unshieldv3/" HOMEPAGE="https://github.com/wfr/unshieldv3/"
DOWNLOAD="https://slackware.uk/~urchlay/src/unshieldv3-20190930_0037ff5.tar.xz" DOWNLOAD="https://github.com/wfr/unshieldv3/archive/v0.2.1/unshieldv3-0.2.1.tar.gz"
MD5SUM="290d7f150ee6cc2bc471ba6b2ccfb271" MD5SUM="e62b7d9cde2b5c75e0a3d16bf808ffbe"
DOWNLOAD_x86_64="" DOWNLOAD_x86_64=""
MD5SUM_x86_64="" MD5SUM_x86_64=""
REQUIRES="" REQUIRES=""

View File

@ -2,7 +2,7 @@
.. rst2man.py unshieldv3.rst > unshieldv3.1 .. rst2man.py unshieldv3.rst > unshieldv3.1
.. rst2man.py comes from the SBo development/docutils package. .. rst2man.py comes from the SBo development/docutils package.
.. |version| replace:: 1.30_beta+20190930_0037ff5 .. |version| replace:: 0.2.1
.. |date| date:: .. |date| date::
========== ==========
@ -21,9 +21,11 @@ Extract InstallShield v3 archives
SYNOPSIS SYNOPSIS
======== ========
unshieldv3 list *file.z* unshieldv3 **info** *file.z*
unshieldv3 extract *file.z* [*output-dir*] unshieldv3 **list** [**-v**] *file.z*
unshieldv3 **extract** *file.z* *output-dir*
DESCRIPTION DESCRIPTION
=========== ===========
@ -46,7 +48,7 @@ identified by the **file**\(1) command:
$ head -c6 data.Z | xxd $ head -c6 data.Z | xxd
00000000: 135d 658c 3a01 .]e.:. 00000000: 135d 658c 3a01 .]e.:.
If **file** says "compress'd data" or similar, your file isn't an If **file** says "compress'd data" or similar, your .Z file isn't an
InstallShield archive; it's compressed with the old UNIX compress InstallShield archive; it's compressed with the old UNIX compress
command, and can be extracted with **uncompress**\(1) or **gzip**\(1). command, and can be extracted with **uncompress**\(1) or **gzip**\(1).
@ -59,13 +61,17 @@ OPTIONS
Options may not be abbreviated. Options may not be abbreviated.
**info**
Show archive metadata: number of files, compressed size, and
uncompressed size.
**list** **list**
List contents of archive. List contents of archive. With **-v**, shows the size and timestamp
of each file.
**extract** **extract**
Extract archive. If an *output-dir* is given, extracted files will be written Extract archive. *output-dir* is required, but will not be created if
there (the *output-dir* must already exist). Without *output-dir*, the current it doesn't exist. Use **.** to extract to the current directory.
directory is used.
COPYRIGHT COPYRIGHT
========= =========