mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
academic/EMBOSS: Update binaries location.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
f0a8bd82eb
commit
32bfc419eb
1 changed files with 17 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue