network/pounce: Add -rpath. Simplify strip line.
Signed-off-by: bedlam <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
e3cd11bc06
commit
fdc9a9c2b0
|
@ -1,14 +1,16 @@
|
|||
#!/bin/bash
|
||||
|
||||
# slackbuild script for pounce by D Woodfall
|
||||
# slackbuild script for pounce
|
||||
# By D Woodfall <dave@slackbuilds.org>
|
||||
# Licensed under the WTFPL (http://www.wtfpl.net)
|
||||
#
|
||||
# WTFPL licence 2023
|
||||
# 2023-05-10 11:38:55 +0100 Added rpath. DW.
|
||||
|
||||
cd $(dirname $0) ; CWD=$(pwd)
|
||||
|
||||
PRGNAM=pounce
|
||||
VERSION=${VERSION:-3.1}
|
||||
BUILD=${BUILD:-1}
|
||||
BUILD=${BUILD:-2}
|
||||
TAG=${TAG:-_SBo}
|
||||
PKGTYPE=${PKGTYPE:-tgz}
|
||||
|
||||
|
@ -55,8 +57,11 @@ chown -R root:root .
|
|||
find . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} + \
|
||||
-o \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} +
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
# NOTE in case libressl is installed instead of libtls
|
||||
export PKG_CONFIG_PATH=/usr/lib${LIBDIRSUFFIX}/libressl/pkgconfig:$PKG_CONFIG_PATH
|
||||
export CFLAGS="$SLKCFLAGS -L/usr/lib${LIBDIRSUFFIX}/libressl"
|
||||
export LDFLAGS="-Wl,-rpath=/usr/lib${LIBDIRSUFFIX}/libressl"
|
||||
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--mandir=/usr/man \
|
||||
|
@ -68,8 +73,7 @@ make install DESTDIR=$PKG
|
|||
|
||||
rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la
|
||||
|
||||
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
|
||||
strip --strip-unneeded $PKG/usr/bin/$PRGNAM
|
||||
|
||||
gzip -9 $PKG/usr/man/man1/*.1
|
||||
gzip -9 -c pounce-palaver.1 > $PKG/usr/man/man1/pounce-palaver.1.gz
|
||||
|
|
Loading…
Reference in New Issue