diff options
Diffstat (limited to 'development/cgdb')
-rw-r--r-- | development/cgdb/cgdb.SlackBuild | 41 | ||||
-rw-r--r-- | development/cgdb/cgdb.info | 14 | ||||
-rw-r--r-- | development/cgdb/doinst.sh | 6 | ||||
-rw-r--r-- | development/cgdb/slack-desc | 2 |
4 files changed, 34 insertions, 29 deletions
diff --git a/development/cgdb/cgdb.SlackBuild b/development/cgdb/cgdb.SlackBuild index 916dcc6bea..c72982f689 100644 --- a/development/cgdb/cgdb.SlackBuild +++ b/development/cgdb/cgdb.SlackBuild @@ -2,6 +2,8 @@ # Slackware build script for cgdb +# 2023-05-08 updated for 0.8.0 by D Woodfall <dave@slackbuilds.org> + # Copyright 2009-2010 Sean Donner (sean.donner@gmail.com) # All rights reserved. # @@ -22,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.6.6} -BUILD=${BUILD:-1} +VERSION=${VERSION:-0.8.0} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -38,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 @@ -72,42 +74,37 @@ cd $TMP rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION -chown root:root . -R +chown -R root:root . +find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ + \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ - --mandir=/usr/man \ --docdir=/usr/doc/$PRGNAM-$VERSION \ --infodir=/usr/info \ --build=$ARCH-slackware-linux make -make install DESTDIR=$PKG - -find $PKG -exec file {} + | sed -n '/ELF.*executable\|shared object/s/:.*$//p' | \ - xargs strip --strip-unneeded 2> /dev/null || true -find $PKG -exec file {} + | sed -n '/current ar archive/s/:.*$//p' | \ - xargs strip --strip-debug 2> /dev/null || true - -find $PKG/usr/man -type f -exec gzip -9 {} + -find $PKG/usr/man -type l -print0 | while IFS= read -r -d $'\0' link; do - ln -s $(readlink "$link").gz "${link}.gz" - rm "$link" -done +make install-strip DESTDIR=$PKG +# No man page, only an info and a text file rm -f $PKG/usr/info/dir gzip -9 $PKG/usr/info/* mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a AUTHORS COPYING ChangeLog NEWS README TODO \ - $PKG/usr/doc/$PRGNAM-$VERSION +cp -a AUTHORS COPYING NEWS $PKG/usr/share/cgdb/cgdb.txt \ + $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +cat $CWD/$PRGNAM.pdf > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.pdf + +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 -find . -perm /111 -exec chmod 755 {} + -o -perm /444 ! -perm /111 -exec chmod 644 {} + /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/development/cgdb/cgdb.info b/development/cgdb/cgdb.info index ce2dce16c6..c55f31be55 100644 --- a/development/cgdb/cgdb.info +++ b/development/cgdb/cgdb.info @@ -1,10 +1,12 @@ PRGNAM="cgdb" -VERSION="0.6.6" -HOMEPAGE="http://cgdb.sourceforge.net" -DOWNLOAD="http://downloads.sourceforge.net/cgdb/cgdb-0.6.6.tar.gz" -MD5SUM="394b542b495755ab8392b7e88dace744" +VERSION="0.8.0" +HOMEPAGE="https://cgdb.github.io" +DOWNLOAD="https://cgdb.me/files/cgdb-0.8.0.tar.gz \ + https://cgdb.github.io/docs/cgdb.pdf" +MD5SUM="180c1c7100bd9591b0d29e46896b5092 \ + e8cc8a8e40c32626ef1fd4c34f7770f5" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" -MAINTAINER="Sean Donner" -EMAIL="sean.donner@gmail.com" +MAINTAINER="D Woodfall" +EMAIL="dave@slackbuilds.org" diff --git a/development/cgdb/doinst.sh b/development/cgdb/doinst.sh new file mode 100644 index 0000000000..1bef502028 --- /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 diff --git a/development/cgdb/slack-desc b/development/cgdb/slack-desc index e9fc88a5e5..ffa8c1508d 100644 --- a/development/cgdb/slack-desc +++ b/development/cgdb/slack-desc @@ -12,7 +12,7 @@ cgdb: CGDB is a curses (terminal-based) interface to the GNU Debugger (GDB). cgdb: Its goal is to be lightweight and responsive; not encumbered with cgdb: unnecessary features. cgdb: -cgdb: Homepage: http://cgdb.sourceforge.net +cgdb: Homepage: https://cgdb.github.io cgdb: cgdb: cgdb: |