diff options
author | B. Watson <urchlay@slackware.uk> | 2023-06-30 14:36:40 -0400 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-07-08 16:42:01 +0700 |
commit | 44a056c3117292e83636161d5a8846104926b4ee (patch) | |
tree | 4efb6692dcbda6d0b0965adccd9ed42b68a90a20 /ham | |
parent | a0a5b8f8a204602df419fd0e01ba1e0d7651eb65 (diff) |
ham/hamlib: Handle /usr/info/dir.
Signed-off-by: B. Watson <urchlay@slackware.uk>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'ham')
-rw-r--r-- | ham/hamlib/doinst.sh | 6 | ||||
-rw-r--r-- | ham/hamlib/hamlib.SlackBuild | 17 |
2 files changed, 16 insertions, 7 deletions
diff --git a/ham/hamlib/doinst.sh b/ham/hamlib/doinst.sh new file mode 100644 index 0000000000000..1bef5020286ea --- /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 b83dc085e9b73..bac0eecc24804 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 |