|
|
|
@ -2,7 +2,7 @@ |
|
|
|
# |
|
|
|
# Slackware build script for (X)MedCon |
|
|
|
# |
|
|
|
# Copyright 2016-2022 Marek Šrejma <marek@modweb.de>, Germany |
|
|
|
# Copyright 2016-2023 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.23.0} |
|
|
|
BUILD=${BUILD:-1} |
|
|
|
TAG=${TAG:-_SBo} |
|
|
|
PKGTYPE=${PKGTYPE:-tgz} |
|
|
|
|
|
|
|
@ -50,13 +50,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 +102,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 +114,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 |
|
|
|
|