From 49032922f27a339b3c062e1d42c9491eaececaa1 Mon Sep 17 00:00:00 2001 From: Fridrich von Stauffenberg Date: Fri, 5 Jul 2013 01:11:07 -0500 Subject: academic/qucs: Updated for version 0.0.17. Signed-off-by: Robby Workman --- academic/qucs/qucs.SlackBuild | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'academic/qucs/qucs.SlackBuild') diff --git a/academic/qucs/qucs.SlackBuild b/academic/qucs/qucs.SlackBuild index 51b60ec484..e6a0871dc0 100644 --- a/academic/qucs/qucs.SlackBuild +++ b/academic/qucs/qucs.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for Qucs -# Copyright 2011 Fridrich von Stauffenberg +# Copyright 2011-2013 Fridrich von Stauffenberg # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=qucs -VERSION=${VERSION:-0.0.16} +VERSION=${VERSION:-0.0.17} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -63,17 +63,20 @@ rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION chown -R root:root . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; -# This is vital! -( cd $PRGNAM-core - patch -p1 < $CWD/$PRGNAM-disable-tr1.patch -) +find . -type f -exec sed -i "s,QTDIR,QT4DIR,g" {} \; CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ - --mandir=/usr/man + --mandir=/usr/man \ + --build=$ARCH-slackware-linux make make install-strip DESTDIR=$PKG @@ -81,10 +84,8 @@ make install-strip DESTDIR=$PKG 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/share/applications +mkdir -p $PKG/usr/share/{applications,pixmaps} cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop - -mkdir -p $PKG/usr/share/pixmaps cat $CWD/$PRGNAM.png > $PKG/usr/share/pixmaps/$PRGNAM.png mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -- cgit v1.2.3