graphics/xmedcon: Updated for version 0.17.0.

Signed-off-by: Dave Woodfall <dave@slackbuilds.org>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Marek Srejma 2021-02-26 17:51:28 +00:00 committed by Willy Sudiarto Raharjo
parent 0707ec073b
commit dce18bbfe4
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
5 changed files with 17 additions and 37 deletions

View File

@ -1,29 +1,3 @@
config() {
NEW="$1"
OLD="$(dirname $NEW)/$(basename $NEW .new)"
# If there's no config file by that name, mv it over:
if [ ! -r $OLD ]; then
mv $NEW $OLD
elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
# toss the redundant copy
rm $NEW
fi
# Otherwise, we leave the .new copy for the admin to consider...
}
preserve_perms() {
NEW="$1"
OLD="$(dirname $NEW)/$(basename $NEW .new)"
if [ -e $OLD ]; then
cp -a $OLD ${NEW}.incoming
cat $NEW > ${NEW}.incoming
mv ${NEW}.incoming $NEW
fi
config $NEW
}
config etc/xmedconrc.new
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi

View File

@ -6,7 +6,7 @@
# customary to leave one space after the ':' except on otherwise blank lines.
|-----handy-ruler------------------------------------------------------|
xmedcon: xmedcon (X)
xmedcon: (X)MedCon (Medical Image Conversion)
xmedcon:
xmedcon: a medical image conversion utility & library; hereby hoping to lower
xmedcon: at least one barrier in medical research projects.

View File

@ -2,7 +2,7 @@
#
# Slackware build script for (X)MedCon
#
# Copyright 2016 Marek Srejma (sam_web@yahoo.de)
# Copyright 2016-2021 Marek Srejma (sam@modweb.de)
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=xmedcon
VERSION=${VERSION:-0.16.3}
VERSION=${VERSION:-0.17.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@ -84,11 +84,16 @@ CXXFLAGS="$SLKCFLAGS" \
make
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
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
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
for i in $( find $PKG/usr/man -type l )
do
ln -s $( readlink $i ).gz $i.gz
rm $i
done
mv $PKG/usr/etc $PKG/
mv $PKG/etc/xmedconrc $PKG/etc/xmedconrc.new
@ -101,7 +106,7 @@ 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 INSTALL NEWS README REMARKS \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

View File

@ -5,3 +5,4 @@ GenericName=Medical Image Conversion
Exec=xmedcon
Icon=xmedcon
Categories=Graphics;Utility;
MimeType=application/dicom;

View File

@ -1,10 +1,10 @@
PRGNAM="xmedcon"
VERSION="0.16.3"
VERSION="0.17.0"
HOMEPAGE="http://xmedcon.sourceforge.net/"
DOWNLOAD="https://downloads.sourceforge.net/project/xmedcon/XMedCon-Source/0.16.3/xmedcon-0.16.3.tar.bz2"
MD5SUM="f9369c3e39ec1e9c0db3e6a1b538b931"
DOWNLOAD="https://downloads.sourceforge.net/project/xmedcon/XMedCon-Source/0.17.0/xmedcon-0.17.0.tar.bz2"
MD5SUM="5193242f66fb2a393902c332ef74e9b1"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
MAINTAINER="Marek Srejma"
EMAIL="sam_web@yahoo.de"
EMAIL="sam@modweb.de"