From 32bfc419ebdc157ffc697d834c340552bbdcaa32 Mon Sep 17 00:00:00 2001 From: Petar Petrov Date: Fri, 29 Jul 2022 22:20:39 +0700 Subject: academic/EMBOSS: Update binaries location. Signed-off-by: Willy Sudiarto Raharjo --- academic/EMBOSS/EMBOSS.SlackBuild | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/academic/EMBOSS/EMBOSS.SlackBuild b/academic/EMBOSS/EMBOSS.SlackBuild index b3546bc77d..bc69dbfcb6 100644 --- a/academic/EMBOSS/EMBOSS.SlackBuild +++ b/academic/EMBOSS/EMBOSS.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for EMBOSS -# Copyright 2011-2021 Petar Petrov slackalaxy@gmail.com +# Copyright 2011-2022 Petar Petrov slackalaxy@gmail.com # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=EMBOSS VERSION=${VERSION:-6.6.0} -BUILD=${BUILD:-3} +BUILD=${BUILD:-4} 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 @@ -86,7 +83,8 @@ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ - --libdir=/usr/lib${LIBDIRSUFFIX} \ + --libdir=/usr/lib${LIBDIRSUFFIX}/$PRGNAM \ + --bindir=/usr/lib${LIBDIRSUFFIX}/$PRGNAM/bin \ --with-x \ --sysconfdir=/etc \ --localstatedir=/var \ @@ -96,6 +94,15 @@ CXXFLAGS="$SLKCFLAGS" \ make make install DESTDIR=$PKG +# Make jEmboss find the binaries +sed -i "s|/usr/bin/|/usr/lib${LIBDIRSUFFIX}/$PRGNAM/bin/|g" $PKG/usr/share/EMBOSS/jemboss/resources/jemboss.properties +sed -i "s|/usr/bin:|/usr/lib${LIBDIRSUFFIX}/$PRGNAM:/usr/bin:|g" $PKG/usr/share/EMBOSS/jemboss/resources/jemboss.properties + +mkdir -p $PKG/usr/bin +cd $PKG/usr/bin +mv $PKG/usr/lib${LIBDIRSUFFIX}/$PRGNAM/bin/runJemboss.sh . +cd - + 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 @@ -106,6 +113,10 @@ cp -a \ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild cat $CWD/References > $PKG/usr/doc/$PRGNAM-$VERSION/References +cd $PKG/usr/doc/$PRGNAM-$VERSION +ln -s ../../share/$PRGNAM/doc . +cd - + mkdir -p $PKG/usr/share/{applications,pixmaps} cp $CWD/$PRGNAM.desktop $PKG/usr/share/applications cp $CWD/$PRGNAM.png $PKG/usr/share/pixmaps -- cgit v1.2.3