aboutsummaryrefslogtreecommitdiff
path: root/development/avrdude/avrdude.SlackBuild
diff options
context:
space:
mode:
authorDustin Schnee <schnee72{at}gmail{dot}com>2011-09-13 07:57:58 -0300
committerNiels Horn <niels.horn@slackbuilds.org>2011-09-13 07:57:58 -0300
commitdd5795e152591c07b1e809109434042916eca07f (patch)
tree06bc6a4cecef2eea20d62c0900cc180df6dc71e8 /development/avrdude/avrdude.SlackBuild
parent41b839dabf401b2b40bd602588fa4ed0d3dbb437 (diff)
development/avrdude: Updated for version 5.11.
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'development/avrdude/avrdude.SlackBuild')
-rw-r--r--development/avrdude/avrdude.SlackBuild17
1 files changed, 8 insertions, 9 deletions
diff --git a/development/avrdude/avrdude.SlackBuild b/development/avrdude/avrdude.SlackBuild
index b18469a469976..633db4ed37138 100644
--- a/development/avrdude/avrdude.SlackBuild
+++ b/development/avrdude/avrdude.SlackBuild
@@ -5,16 +5,14 @@
# Written by Dustin Schnee <schnee72{at}gmail{dot}com>
PRGNAM=avrdude
-VERSION=${VERSION:-5.10}
+VERSION=${VERSION:-5.11}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@@ -67,22 +65,23 @@ CXXFLAGS="$SLKCFLAGS" \
make
make install DESTDIR=$PKG
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-( cd $PKG/usr/man
- find . -type f -exec gzip -9 {} \;
- for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
-)
+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
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS COPYING ChangeLog INSTALL NEWS README \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+# avoid overwriting configuration
+mv $PKG/etc/$PRGNAM.conf $PKG/etc/$PRGNAM.conf.new
+
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
-