aboutsummaryrefslogtreecommitdiff
path: root/network
diff options
context:
space:
mode:
authorNaglfar <naglfar[AT]rpblc.net>2023-05-10 11:51:56 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-05-13 19:27:06 +0700
commite3cd11bc06182c33d8d7aede4092253f71597878 (patch)
tree5ce73f1d11f88622d37edc3d8aa3396bde9d8928 /network
parentd78cd39a8146046a3a4f007ce1f18e41d5e06773 (diff)
network/catgirl: Add -rpath. Simplify strip/man lines.
Signed-off-by: bedlam <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network')
-rw-r--r--network/catgirl/catgirl.SlackBuild17
1 files changed, 9 insertions, 8 deletions
diff --git a/network/catgirl/catgirl.SlackBuild b/network/catgirl/catgirl.SlackBuild
index 4e12127fefb49..4fe30ec145865 100644
--- a/network/catgirl/catgirl.SlackBuild
+++ b/network/catgirl/catgirl.SlackBuild
@@ -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 \