summaryrefslogtreecommitdiff
path: root/system/hh/hh.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/hh/hh.SlackBuild')
-rw-r--r--system/hh/hh.SlackBuild14
1 files changed, 8 insertions, 6 deletions
diff --git a/system/hh/hh.SlackBuild b/system/hh/hh.SlackBuild
index 899ef19235..1a500ef749 100644
--- a/system/hh/hh.SlackBuild
+++ b/system/hh/hh.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=hh
-VERSION=${VERSION:-1.24}
+VERSION=${VERSION:-1.25}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGNAM=hstr
@@ -60,9 +60,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PKGNAM-$VERSION
-tar xvf $CWD/$PKGNAM-$VERSION.tar.gz
-cd $PKGNAM-$VERSION
+rm -rf $PKGNAM
+tar xvf $CWD/$PRGNAM-$VERSION-src.tgz
+cd $PKGNAM
chown -R root:root .
find -L . \
@@ -71,8 +71,6 @@ 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 {} \;
-autoreconf -vis
-
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
ac_cv_func_malloc_0_nonnull=yes \
@@ -87,9 +85,13 @@ ac_cv_func_malloc_0_nonnull=yes \
# Save this from next Slackware release
#sed -i 's/lncursesw/lncursesw -ltinfo/g' src/Makefile
+
make
make install DESTDIR=$PKG
+ln -sf hh $PKG/usr/bin/hstr
+ln -sf hh.1 $PKG/usr/man/man1/hstr.1
+
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