diff options
author | B. Watson <urchlay@slackware.uk> | 2023-06-27 04:56:50 -0400 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-07-08 16:41:58 +0700 |
commit | a36f2ab091658c8d3ba6eb7664bb520848b63109 (patch) | |
tree | bf1d456d54d3dc04bbe54f8aca9f28fde53ed7bc /development/tcc | |
parent | 20ad9a7874dfc5436f7dea3de4b8e0d85435a6d3 (diff) |
development/tcc: Add doinst/douninst for .info file.
Signed-off-by: B. Watson <urchlay@slackware.uk>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/tcc')
-rw-r--r-- | development/tcc/doinst.sh | 6 | ||||
-rw-r--r-- | development/tcc/tcc.SlackBuild | 7 |
2 files changed, 12 insertions, 1 deletions
diff --git a/development/tcc/doinst.sh b/development/tcc/doinst.sh new file mode 100644 index 000000000000..1bef5020286e --- /dev/null +++ b/development/tcc/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/development/tcc/tcc.SlackBuild b/development/tcc/tcc.SlackBuild index 6ad16282256a..ba4a94dcd11a 100644 --- a/development/tcc/tcc.SlackBuild +++ b/development/tcc/tcc.SlackBuild @@ -26,11 +26,14 @@ # Markus Reichelt, slackbuilds@mareichelt.de, 0xCCEEF115 # in memoriam of Georg Ohler +# 20230627 bkw: Modified by SlackBuilds.org, BUILD=2: +# - add doinst.sh and douninst.sh to manage /usr/info/dir. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=tcc VERSION=${VERSION:-20220221_308d8d1} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -116,6 +119,8 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild 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 |