summaryrefslogtreecommitdiffstats
path: root/ham/hamlib
diff options
context:
space:
mode:
Diffstat (limited to 'ham/hamlib')
-rw-r--r--ham/hamlib/doinst.sh6
-rw-r--r--ham/hamlib/hamlib.SlackBuild25
2 files changed, 20 insertions, 11 deletions
diff --git a/ham/hamlib/doinst.sh b/ham/hamlib/doinst.sh
new file mode 100644
index 0000000000..1bef502028
--- /dev/null
+++ b/ham/hamlib/doinst.sh
@@ -0,0 +1,6 @@
+if [ -x /usr/bin/install-info -a -d usr/info ]; then
+ ( cd usr/info
+ rm -f dir
+ for i in *.info*; do /usr/bin/install-info $i dir 2>/dev/null; done
+ )
+fi
diff --git a/ham/hamlib/hamlib.SlackBuild b/ham/hamlib/hamlib.SlackBuild
index b83dc085e9..c84b641e0b 100644
--- a/ham/hamlib/hamlib.SlackBuild
+++ b/ham/hamlib/hamlib.SlackBuild
@@ -24,11 +24,15 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20230630 bkw: Modified by SlackBuilds.org, BUILD=2:
+# - add doinst.sh to handle /usr/info/dir.
+# - rm INSTALL (compile instructions only).
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=hamlib
VERSION=${VERSION:-3.3}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -40,9 +44,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -52,7 +53,7 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-DOCFILES="AUTHORS COPYING COPYING.LIB ChangeLog INSTALL LICENSE NEWS PLAN
+DOCFILES="AUTHORS COPYING COPYING.LIB ChangeLog LICENSE NEWS PLAN
README README.betatester README.developer THANKS TODO"
if [ "$ARCH" = "i586" ]; then
@@ -80,9 +81,9 @@ cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
- -o -perm 511 \) -exec chmod 755 {} \; -o \
+ -o -perm 511 \) -exec chmod 755 {} + -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} +
if [ x"${PL_MOD}" = x"yes" ]; then
PERL_BINDING="--with-perl-binding"
@@ -92,19 +93,19 @@ fi
if { [ x"${PY_MOD}" = x"yes" ] || [ x"${PY3_MOD}" = x"yes" ]; } then
PYTHON_BINDING="--with-python-binding"
- PYV=`python -c "import sys;t='{v[0]}.{v[1]}'.format(v=list(sys.version_info[:2]));sys.stdout.write(t)";`
+ PYV=$( python -c "import sys;t='{v[0]}.{v[1]}'.format(v=list(sys.version_info[:2]));sys.stdout.write(t)"; )
else
PYTHON_BINDING=""
fi
if [ x"${PY3_MOD}" = x"yes" ]; then
- export PYTHON=`which python3`
- PYV=`python3 -c "import sys;t='{v[0]}.{v[1]}'.format(v=list(sys.version_info[:2]));sys.stdout.write(t)";`
+ export PYTHON=$( which python3 )
+ PYV=$( python3 -c "import sys;t='{v[0]}.{v[1]}'.format(v=list(sys.version_info[:2]));sys.stdout.write(t)"; )
fi
if [ x"${TCL_MOD}" = x"yes" ]; then
TCL_BINDING="--with-tcl-binding"
- TCLV=`echo 'puts $tcl_version;exit 0' | tclsh`
+ TCLV=$( echo 'puts $tcl_version;exit 0' | tclsh )
else
TCL_BINDING=""
fi
@@ -183,6 +184,8 @@ rm -f $PKG/usr/lib*/*.la
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
+cat $CWD/doinst.sh > $PKG/install/douninst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE