summaryrefslogtreecommitdiff
path: root/development/avr-gdb/avr-gdb.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/avr-gdb/avr-gdb.SlackBuild')
-rw-r--r--development/avr-gdb/avr-gdb.SlackBuild20
1 files changed, 13 insertions, 7 deletions
diff --git a/development/avr-gdb/avr-gdb.SlackBuild b/development/avr-gdb/avr-gdb.SlackBuild
index 01206cc07d..92d5be38b9 100644
--- a/development/avr-gdb/avr-gdb.SlackBuild
+++ b/development/avr-gdb/avr-gdb.SlackBuild
@@ -5,7 +5,7 @@
# Written by thorsten
PRGNAM=avr-gdb
-VERSION=${VERSION:-7.6.2}
+VERSION=${VERSION:-7.8.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -42,7 +42,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf gdb-$VERSION avr-gdb-build-$VERSION
-tar xvf $CWD/gdb-$VERSION.tar.bz2
+tar xvf $CWD/gdb-$VERSION.tar.xz
mkdir avr-gdb-build-$VERSION
cd avr-gdb-build-$VERSION
chown -R root:root .
@@ -62,7 +62,10 @@ CXXFLAGS_FOR_BUILD="$SLKCFLAGS" \
--infodir=/usr/info \
--mandir=/usr/man \
--target=avr \
- --disable-texinfo \
+ --disable-nls \
+ --enable-languages=c,c++ \
+ --with-python=/usr/bin/python2 \
+ --with-system-gdbinit=/etc/gdb/gdbinit \
--program-prefix="avr-" \
--program-suffix="" \
--build=$ARCH-slackware-linux
@@ -76,6 +79,9 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+rm -f $PKG/usr/info/dir
+gzip -9 $PKG/usr/info/*.info*
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
for file in COPYING* ChangeLog MAINTAINERS README*; do
cp ../gdb-$VERSION/$file $PKG/usr/doc/$PRGNAM-$VERSION
@@ -84,10 +90,10 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
# Remove useless stuff
rm -rf $PKG/usr/lib${LIBDIRSUFFIX}/libiberty.a
-rm -rf $PKG/usr/info
-rm -rf $PKG/usr/include
-rm -rf $PKG/usr/share
-rm -rf $PKG/usr/man/man7
+rm -rf $PKG/usr/include/gdb
+rm -rf $PKG/usr/share/gdb
+rm -rf $PKG/usr/share/info
+rm -rf $PKG/usr/share/man
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc