mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-22 19:44:21 +01:00
academic/qucs: Updated for version 0.0.19.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
a80c00941b
commit
1ea18d4401
2 changed files with 18 additions and 27 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
PRGNAM="qucs"
|
||||
VERSION="0.0.18"
|
||||
VERSION="0.0.19"
|
||||
HOMEPAGE="http://qucs.sourceforge.net"
|
||||
DOWNLOAD="http://downloads.sourceforge.net/qucs/qucs-0.0.18.tar.gz"
|
||||
MD5SUM="4985d66565e8c29c9e6d7e7c98781e60"
|
||||
DOWNLOAD="http://downloads.sourceforge.net/qucs/qucs-0.0.19.tar.gz"
|
||||
MD5SUM="321b22b88099c6c8ac42ee8b7ab637a8"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES=""
|
||||
MAINTAINER="orphaned - no maintainer"
|
||||
EMAIL="nobody@nowhere.com"
|
||||
REQUIRES="adms"
|
||||
MAINTAINER="Fellype do Nascimento"
|
||||
EMAIL="fellype (at) gmail (dot) com"
|
||||
|
|
Loading…
Reference in a new issue