diff --git a/network/catgirl/catgirl.SlackBuild b/network/catgirl/catgirl.SlackBuild index 4e12127fef..4fe30ec145 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 \