summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Petar Petrov <slackalaxy@gmail.com>2022-07-29 22:20:39 +0700
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2022-07-29 22:20:39 +0700
commit32bfc419ebdc157ffc697d834c340552bbdcaa32 (patch)
tree2e49164eae600a81e67e1c80a6aeb2f8cc216798
parentf0a8bd82eb75c45164505c604f3cecabe7314654 (diff)
downloadslackbuilds-32bfc419ebdc157ffc697d834c340552bbdcaa32.tar.gz
slackbuilds-32bfc419ebdc157ffc697d834c340552bbdcaa32.tar.xz
academic/EMBOSS: Update binaries location.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--academic/EMBOSS/EMBOSS.SlackBuild23
1 files 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