summaryrefslogtreecommitdiffstats
path: root/source/a/less/less.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'source/a/less/less.SlackBuild')
-rwxr-xr-xsource/a/less/less.SlackBuild17
1 files changed, 16 insertions, 1 deletions
diff --git a/source/a/less/less.SlackBuild b/source/a/less/less.SlackBuild
index 6db39b350..002899a60 100755
--- a/source/a/less/less.SlackBuild
+++ b/source/a/less/less.SlackBuild
@@ -1,6 +1,6 @@
#!/bin/bash
-# Copyright 2005-2018 Patrick J. Volkerding, Sebeka, MN, USA
+# Copyright 2005-2022 Patrick J. Volkerding, Sebeka, MN, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -83,6 +83,21 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \+
+if [ ! -r configure ]; then
+ if [ -x ./autogen.sh ]; then
+ NOCONFIGURE=1 ./autogen.sh
+ else
+ autoreconf -vif
+ fi
+fi
+
+# Prep needed if using the git archive:
+for file in funcs.h less.nro lesskey.nro lessecho.nro ; do
+ if [ ! -r $file ]; then
+ make -f Makefile.aut $file
+ fi
+done
+
CFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \