summaryrefslogtreecommitdiffstats
path: root/ham/hamlib/hamlib.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'ham/hamlib/hamlib.SlackBuild')
-rw-r--r--ham/hamlib/hamlib.SlackBuild17
1 files changed, 10 insertions, 7 deletions
diff --git a/ham/hamlib/hamlib.SlackBuild b/ham/hamlib/hamlib.SlackBuild
index b83dc085e9..bac0eecc24 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"
@@ -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