summaryrefslogtreecommitdiffstats
path: root/academic
diff options
context:
space:
mode:
author Mauricio Martinez <eigenfilter@gmail.com>2024-05-09 07:21:08 +0700
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2024-05-11 06:51:54 +0700
commit3985b2905b6f8227b198cb0c70208513a953d0d8 (patch)
tree266555c314092e1533cad3eb9a37ae500510cded /academic
parent52e25c6635b93596ced11affa886dfaad7c73c44 (diff)
downloadslackbuilds-3985b2905b6f8227b198cb0c70208513a953d0d8.tar.gz
slackbuilds-3985b2905b6f8227b198cb0c70208513a953d0d8.tar.xz
academic/magic: Updated for version 8.3.474.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'academic')
-rw-r--r--academic/magic/magic.SlackBuild22
-rw-r--r--academic/magic/magic.info6
2 files changed, 21 insertions, 7 deletions
diff --git a/academic/magic/magic.SlackBuild b/academic/magic/magic.SlackBuild
index 73f7640cfc..241f4f9e2e 100644
--- a/academic/magic/magic.SlackBuild
+++ b/academic/magic/magic.SlackBuild
@@ -2,6 +2,8 @@
# Slackware build script for magic
# Written by Mauricio Martinez <eigenfilter {at} gmail [dot] com>
+#
+# Updated 05/01/2024 by Alfredo Tomasini <alto . tom @ gmail . com >
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
@@ -17,7 +19,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=magic
-VERSION=${VERSION:-8.0.211}
+VERSION=${VERSION:-8.3.474}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -30,9 +32,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -71,6 +70,18 @@ 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 {} \;
+# change the final installation from /usr/lib to usr/lib64
+if [[ "$VERSION" =~ "8.3" ]] && [ "$ARCH" = "x86_64" ]
+then
+sed -i '
+/^ *INSTALL_LIBDIR *= /{
+s#.*##
+i\
+INSTALL_LIBDIR = @DIST_DIR@/lib64
+} ' scripts/defs.mak.in
+fi
+# exit
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
@@ -88,8 +99,11 @@ make install DESTDIR=$PKG
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+mv $PKG/usr/share/man $PKG/usr/
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
+chmod -R 0644 $PKG/usr/man/*/*.gz
+rm -rf $PKG/usr/share
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a doc/* $PKG/usr/doc/$PRGNAM-$VERSION
diff --git a/academic/magic/magic.info b/academic/magic/magic.info
index 5dba84cc65..13a82a5f60 100644
--- a/academic/magic/magic.info
+++ b/academic/magic/magic.info
@@ -1,8 +1,8 @@
PRGNAM="magic"
-VERSION="8.0.211"
+VERSION="8.3.474"
HOMEPAGE="http://opencircuitdesign.com/magic/"
-DOWNLOAD="http://opencircuitdesign.com/magic/archive/magic-8.0.211.tgz"
-MD5SUM="caa066a415fe219afab7a80c5948ac49"
+DOWNLOAD="http://opencircuitdesign.com/magic/archive/magic-8.3.474.tgz"
+MD5SUM="6aabec0c7727f774af49bbb6abb2bdab"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""