aboutsummaryrefslogtreecommitdiff
path: root/development/cgdb
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2023-07-01 04:27:14 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-07-08 16:42:03 +0700
commit9e5aa98b06335a3c81c9272d769d5d9828906841 (patch)
treec714eb127cab8fa6930657981c69a7ff2097dfdd /development/cgdb
parentf499e80d0df8f529ae7509c08111e06645b4deeb (diff)
development/cgdb: Add doinst/douninst for /usr/info/dir.
Signed-off-by: B. Watson <urchlay@slackware.uk> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/cgdb')
-rw-r--r--development/cgdb/cgdb.SlackBuild10
-rw-r--r--development/cgdb/doinst.sh6
2 files changed, 12 insertions, 4 deletions
diff --git a/development/cgdb/cgdb.SlackBuild b/development/cgdb/cgdb.SlackBuild
index edfb85568e56d..c72982f68908c 100644
--- a/development/cgdb/cgdb.SlackBuild
+++ b/development/cgdb/cgdb.SlackBuild
@@ -24,11 +24,14 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20230701 bkw: Modified by SlackBuilds.org, BUILD=2:
+# - add doinst/douninst to handle /usr/info/dir
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=cgdb
VERSION=${VERSION:-0.8.0}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -40,9 +43,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
@@ -103,6 +103,8 @@ rm -rf $PKG/usr/share
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
diff --git a/development/cgdb/doinst.sh b/development/cgdb/doinst.sh
new file mode 100644
index 0000000000000..1bef5020286ea
--- /dev/null
+++ b/development/cgdb/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