diff options
Diffstat (limited to 'development/staruml/staruml.SlackBuild')
-rw-r--r-- | development/staruml/staruml.SlackBuild | 67 |
1 files changed, 15 insertions, 52 deletions
diff --git a/development/staruml/staruml.SlackBuild b/development/staruml/staruml.SlackBuild index e27ae44980dbd..1f69b5b300287 100644 --- a/development/staruml/staruml.SlackBuild +++ b/development/staruml/staruml.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for StarUML -# Copyright 2017 Giorgio Peron <giorgio.peron@gmail.com>, Belluno, Italy +# Copyright 2023 Giorgio Peron <giorgio.peron@gmail.com>, Belluno, Italy # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -25,8 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=staruml -VERSION=${VERSION:-2.8.0} -CRYPT_VERSION=${CRYPT_VERSION:-1.5.0-5+deb7u6} +VERSION=${VERSION:-6.0.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -41,9 +40,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 @@ -53,22 +49,9 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i586" ]; then - SRCARCH="32-bit" - DEBARCH="i386" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "i686" ]; then - SRCARCH="32-bit" - DEBARCH="i386" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "x86_64" ]; then - SRCARCH="64-bit" - DEBARCH="amd64" - LIBDIRSUFFIX="64" -else - SRCARCH="32-bit" - DEBARCH="i386" - LIBDIRSUFFIX="" +if [ "$ARCH" != "x86_64" ]; then + echo "$ARCH not supported." + exit 1 fi set -e @@ -77,45 +60,25 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -ar xvf $CWD/$SRCNAM-v$VERSION-$SRCARCH.deb -cd $PKG -unxz -c ../data.tar.xz | tar xv -cd $TMP -ar xvf $CWD/libgcrypt11\_$CRYPT_VERSION\_$DEBARCH.deb -cd $PKG -tar xvf ../data.tar.gz - -chown -R root:root . -rm -rf $PKG/usr/share/menu -mkdir -p lib$LIBDIRSUFFIX -if [ "$DEBARCH" == 'amd64' ]; then - mv lib/x86_64-linux-gnu/* lib$LIBDIRSUFFIX/ - rm -rf lib - else - mv lib/i386-linux-gnu/* lib$LIBDIRSUFFIX/ - rm -rf lib/i386-linux-gnu -fi +mkdir -p $PRGNAM-$VERSION +cd $PRGNAM-$VERSION +ar x $CWD/${SRCNAM}\_${VERSION}\_amd64.deb +tar xf data.tar.xz +mv opt $PKG +mv usr $PKG # Strip binaries and libraries. 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 -if [ "$ARCH" = "x86_64" ]; then -( - cd $PKG/lib64 - ln -sf /opt/staruml/staruml staruml -) -fi +chmod 644 $PKG/usr/share/applications/$PRGNAM.desktop -mkdir -p $PKG/usr/doc/ -mv usr/share/doc/$PRGNAM usr/doc/$PRGNAM-$VERSION -rm -rf usr/share/doc +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +mv $PKG/usr/share/doc/$PRGNAM/* $PKG/usr/doc/$PRGNAM-$VERSION +rm -rf $PKG/usr/share/doc/ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -mkdir -p $PKG/usr/share/applications -mv opt/$PRGNAM/$PRGNAM.desktop usr/share/applications - mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh |