aboutsummaryrefslogtreecommitdiff
path: root/system/untex/untex.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/untex/untex.SlackBuild')
-rw-r--r--system/untex/untex.SlackBuild24
1 files changed, 16 insertions, 8 deletions
diff --git a/system/untex/untex.SlackBuild b/system/untex/untex.SlackBuild
index b6250d6acb7ad..0b3af3470a6f0 100644
--- a/system/untex/untex.SlackBuild
+++ b/system/untex/untex.SlackBuild
@@ -2,7 +2,9 @@
# Slackware build script for untex
-# Written by Niki Kovacs <info@microlinux.fr>
+# Written by Niki Kovacs (email removed)
+#
+# Now maintained by B. Watson <yalhcru@gmail.com>
#
# All rights reserved.
#
@@ -23,9 +25,14 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20170626 bkw:
+# - take over maintenance
+# - fix missing includes and other compiler warnings
+# - minor script tweaks
+
PRGNAM=untex
VERSION=${VERSION:-1.3}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -71,13 +78,14 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-make
-install -Dm 0755 untex $PKG/usr/bin/untex
-install -Dm 0644 untex.man $PKG/usr/man/man1/untex.1
-gzip -9 $PKG/usr/man/man1/untex.1
+# 20170626 bkw: fix most of the compiler warnings we get with -Wall. This
+# should help with -current's gcc7, which is quite picky.
+patch -p1 < $CWD/fix_warnings.diff
-find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
- | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+make CFLAGS="$SLKCFLAGS"
+install -s -Dm 0755 $PRGNAM $PKG/usr/bin/$PRGNAM
+install -Dm 0644 $PRGNAM.man $PKG/usr/man/man1/$PRGNAM.1
+gzip -9 $PKG/usr/man/man1/$PRGNAM.1
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild