summaryrefslogtreecommitdiff
path: root/development/ftnchek/ftnchek.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2017-02-10 15:40:07 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-02-11 07:24:00 +0700
commit9aea9ef044ed9f51e00e91db3563e2596962db3d (patch)
tree149ae55ef3cef53d7f77412d8cafa41a81f94cf7 /development/ftnchek/ftnchek.SlackBuild
parentd10ba005eb0195a6dc429b7a0b2c900dcabc2773 (diff)
downloadslackbuilds-9aea9ef044ed9f51e00e91db3563e2596962db3d.tar.gz
development/ftnchek: New maintainer, minor fixes.
Diffstat (limited to 'development/ftnchek/ftnchek.SlackBuild')
-rw-r--r--development/ftnchek/ftnchek.SlackBuild38
1 files changed, 22 insertions, 16 deletions
diff --git a/development/ftnchek/ftnchek.SlackBuild b/development/ftnchek/ftnchek.SlackBuild
index c058327249..8235fd37b4 100644
--- a/development/ftnchek/ftnchek.SlackBuild
+++ b/development/ftnchek/ftnchek.SlackBuild
@@ -2,16 +2,28 @@
# Slackware build script for ftnchek
-# Written by Pablo Santamaria (pablosantamaria at gmail.com)
+# Originally written by Pablo Santamaria (email removed)
+
+# Now maintained by B. Watson <yalhcru@gmail.com>. Original version
+# had no license, modified version released under the WTFPL. See
+# http://www.wtfpl.net/txt/copying/ for details.
+
+# 20170210 bkw:
+# - Take over maintenance
+# - BUILD=2
+# - i486 => i586
+# - include html docs in package
+# - reflow README, make slack-desc a bit more verbose
+# - minor cosmetic fixes
PRGNAM=ftnchek
VERSION=${VERSION:-3.3.1}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -22,8 +34,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -57,21 +69,15 @@ CXXFLAGS="$SLKCFLAGS" \
--prefix=/usr \
--build=$ARCH-slackware-linux
-OPTIONS="$SLKCFLAGS" \
-make
+make OPT="$SLKCFLAGS"
+
mkdir -p $PKG/usr/share/emacs/site-lisp
make install prefix=$PKG/usr
-
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
- | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-
-find $PKG/usr/man -type f -exec gzip -9 {} \;
-for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+strip $PKG/usr/bin/$PRGNAM
+gzip $PKG/usr/man/man1/*.1
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a \
- FAQ INSTALL LICENSE PATCHES README ToDo \
- $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a FAQ LICENSE PATCHES README ToDo html $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install