summaryrefslogtreecommitdiffstats
path: root/graphics/xmedcon
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/xmedcon')
-rw-r--r--graphics/xmedcon/xmedcon.SlackBuild24
-rw-r--r--graphics/xmedcon/xmedcon.desktop2
-rw-r--r--graphics/xmedcon/xmedcon.info6
3 files changed, 13 insertions, 19 deletions
diff --git a/graphics/xmedcon/xmedcon.SlackBuild b/graphics/xmedcon/xmedcon.SlackBuild
index 7196a8d4d4..e947ef21bc 100644
--- a/graphics/xmedcon/xmedcon.SlackBuild
+++ b/graphics/xmedcon/xmedcon.SlackBuild
@@ -2,7 +2,7 @@
#
# Slackware build script for (X)MedCon
#
-# Copyright 2016-2022 Marek Šrejma <marek@modweb.de>, Germany
+# Copyright 2016-2024 Marek Šrejma <marek@modweb.de>, Germany
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,8 +25,8 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=xmedcon
-VERSION=${VERSION:-0.21.2}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-0.24.0}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -38,9 +38,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
@@ -50,13 +47,10 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i586" ]; then
- SLKCFLAGS="-O2 -march=i586 -mtune=i686"
+if [ "$ARCH" = "i586" ] || [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=$ARCH -mtune=i686"
LIBDIRSUFFIX=""
-elif [ "$ARCH" = "i686" ]; then
- SLKCFLAGS="-O2 -march=i686 -mtune=i686"
- LIBDIRSUFFIX=""
-elif [ "$ARCH" = "x86_64" ]; then
+elif [ "$ARCH" = "x86_64" ] || [ "$ARCH" = "aarch64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
else
@@ -105,6 +99,8 @@ do
rm $i
done
+rm -f $PKG/usr/lib$LIBDIRSUFFIX/libmdc.la
+
mv $PKG/usr/etc $PKG/
mkdir -p $PKG/usr/share/pixmaps
@@ -115,12 +111,10 @@ install -m644 $CWD/xmedcon.desktop $PKG/usr/share/applications/xmedcon.desktop
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
- AUTHORS COPYING COPYING.LIB ChangeLog INSTALL NEWS README REMARKS \
+ AUTHORS COPYING COPYING.LIB NEWS README REMARKS \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-rm -f $PKG/usr/lib*/*.la
-
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
diff --git a/graphics/xmedcon/xmedcon.desktop b/graphics/xmedcon/xmedcon.desktop
index 95e6adf0e1..68e4b3ffee 100644
--- a/graphics/xmedcon/xmedcon.desktop
+++ b/graphics/xmedcon/xmedcon.desktop
@@ -4,5 +4,5 @@ Name=(X)MedCon
GenericName=Medical Image Conversion
Exec=xmedcon
Icon=xmedcon
-Categories=Graphics;Utility;
+Categories=Graphics;
MimeType=application/dicom;
diff --git a/graphics/xmedcon/xmedcon.info b/graphics/xmedcon/xmedcon.info
index 728b214723..356228348d 100644
--- a/graphics/xmedcon/xmedcon.info
+++ b/graphics/xmedcon/xmedcon.info
@@ -1,8 +1,8 @@
PRGNAM="xmedcon"
-VERSION="0.21.2"
+VERSION="0.24.0"
HOMEPAGE="http://xmedcon.sourceforge.net/"
-DOWNLOAD="https://downloads.sourceforge.net/project/xmedcon/XMedCon-Source/0.21.2/xmedcon-0.21.2.tar.bz2"
-MD5SUM="31802d740f5a0ce1ac59b769bdea61c5"
+DOWNLOAD="https://downloads.sourceforge.net/project/xmedcon/XMedCon-Source/0.24.0/xmedcon-0.24.0.tar.bz2"
+MD5SUM="6825a1972c85ea24c52186713200aca7"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""