summaryrefslogtreecommitdiff
path: root/academic/qucs
diff options
context:
space:
mode:
authorFellype do Nascimento <fellype (at) gmail (dot) com>2020-01-12 11:17:50 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-01-12 11:17:50 +0700
commit1ea18d44019ca79300d7d1c91170e138e0dabaae (patch)
treeca4d36b61c9c7bfc43dcc08d632ac09add22347a /academic/qucs
parenta80c00941b261df58a7f8da1015e2207113ed8d0 (diff)
downloadslackbuilds-1ea18d44019ca79300d7d1c91170e138e0dabaae.tar.gz
academic/qucs: Updated for version 0.0.19.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'academic/qucs')
-rw-r--r--academic/qucs/qucs.SlackBuild33
-rw-r--r--academic/qucs/qucs.info12
2 files changed, 18 insertions, 27 deletions
diff --git a/academic/qucs/qucs.SlackBuild b/academic/qucs/qucs.SlackBuild
index d3a5520dca..dd8b555edb 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
diff --git a/academic/qucs/qucs.info b/academic/qucs/qucs.info
index 4906252ac0..fd2e34b3ab 100644
--- a/academic/qucs/qucs.info
+++ b/academic/qucs/qucs.info
@@ -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"