From f4f9559296c12d88801af42575ca0b2e76920422 Mon Sep 17 00:00:00 2001 From: Sean Donner Date: Sat, 17 Dec 2011 10:15:10 -0600 Subject: development/cgdb: Updated for version 0.6.6 Signed-off-by: Erik Hanson --- development/cgdb/cgdb.SlackBuild | 36 +++++++++++++++--------------------- 1 file changed, 15 insertions(+), 21 deletions(-) (limited to 'development/cgdb/cgdb.SlackBuild') diff --git a/development/cgdb/cgdb.SlackBuild b/development/cgdb/cgdb.SlackBuild index 580ee7ed34..aa10b306b2 100644 --- a/development/cgdb/cgdb.SlackBuild +++ b/development/cgdb/cgdb.SlackBuild @@ -22,25 +22,23 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -PRGNAM=cgdb -VERSION=${VERSION:-0.6.5} +PRGNAM=cgdb +VERSION=${VERSION:-0.6.6} BUILD=${BUILD:-1} -TAG=${TAG:-_SBo} +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 CWD=$(pwd) -TMP=${TMP:-/tmp/SBo} +TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} +OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" @@ -78,20 +76,16 @@ CXXFLAGS="$SLKCFLAGS" \ make make install DESTDIR=$PKG -( cd $PKG - find . -exec file {} + | sed -n '/ELF.*executable\|shared object/s/:.*$//p' | \ - xargs strip --strip-unneeded 2> /dev/null || true - find . -exec file {} + | sed -n '/current ar archive/s/:.*$//p' | \ - xargs strip --strip-debug 2> /dev/null || true -) - -( cd $PKG/usr/man - find . -type f -exec gzip -9 {} + - find . -type l -print0 | while IFS= read -r -d $'\0' link; do - ln -s $(readlink "$link").gz "${link}.gz" - rm "$link" - done -) +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 rm -f $PKG/usr/info/dir gzip -9 $PKG/usr/info/* -- cgit v1.2.3