network/catgirl: Add -rpath. Simplify strip/man lines.

Signed-off-by: bedlam <dave@slackbuilds.org>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Naglfar 2023-05-10 11:51:56 +01:00 committed by Willy Sudiarto Raharjo
parent d78cd39a81
commit e3cd11bc06
No known key found for this signature in database
GPG key ID: 3F617144D7238786

View file

@ -22,12 +22,13 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# 2023-05-10 11:48:54 +0100 Add -rpath, simplify strip/man. DW.
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=catgirl
VERSION=${VERSION:-2.1}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -77,20 +78,20 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+
# 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
CFLAGS="$SLKCFLAGS" \
make
make install DESTDIR=$PKG
# Strip binaries
find $PKG -print0 | xargs -0 file | grep -e "executable" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded
find $PKG/usr/man -type f -exec gzip -9 {} \+
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
strip --strip-unneeded $PKG/usr/bin/$PRGNAM
gzip -9 $PKG/usr/man/man1/catgirl.1
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \