diff options
author | Fellype do Nascimento <fellype (at) gmail (dot) com> | 2020-01-12 11:17:50 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2020-01-12 11:17:50 +0700 |
commit | 1ea18d44019ca79300d7d1c91170e138e0dabaae (patch) | |
tree | ca4d36b61c9c7bfc43dcc08d632ac09add22347a /academic/qucs/qucs.SlackBuild | |
parent | a80c00941b261df58a7f8da1015e2207113ed8d0 (diff) |
academic/qucs: Updated for version 0.0.19.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'academic/qucs/qucs.SlackBuild')
-rw-r--r-- | academic/qucs/qucs.SlackBuild | 33 |
1 files changed, 12 insertions, 21 deletions
diff --git a/academic/qucs/qucs.SlackBuild b/academic/qucs/qucs.SlackBuild index d3a5520dca5f1..dd8b555edb4ae 100644 --- a/academic/qucs/qucs.SlackBuild +++ b/academic/qucs/qucs.SlackBuild @@ -3,6 +3,8 @@ # Slackware build script for Qucs # Copyright 2011-2014 Fridrich von Stauffenberg <cancellor2@gmail.com> +# Copyright 2020 Fellype do Nascimento, Campinas - Brazil +# # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,13 +25,13 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=qucs -VERSION=${VERSION:-0.0.18} +VERSION=${VERSION:-0.0.19} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac @@ -40,18 +42,15 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" - LIBDIRSUFFIX="" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" + SPEC="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" - LIBDIRSUFFIX="" + SPEC="" elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" - LIBDIRSUFFIX="64" -else - SLKCFLAGS="-O2" - LIBDIRSUFFIX="" + SPEC="-spec linux-g++-64" fi set -e @@ -69,25 +68,17 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -find . -type f -exec sed -i "s,QTDIR,QT4DIR,g" {} \; - -# in x86_64, qucs-doc and examples requires newer automake -cd qucs-doc -autoreconf -vi -cd ../examples -autoreconf -vi -cd .. - CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ --mandir=/usr/man \ + --disable-doc \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --build=$ARCH-slackware-linux make -make install-strip DESTDIR=$PKG +make install 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 @@ -97,7 +88,7 @@ cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop cat $CWD/$PRGNAM.png > $PKG/usr/share/pixmaps/$PRGNAM.png mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a AUTHORS COPYING ChangeLog INSTALL NEWS* PLATFORMS README RELEASE THANKS TODO \ +cp -a qucs/AUTHORS qucs/COPYING README.md qucs/README \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |