From 362023e7759e13b5b9b24ac3d71582898f4ef01f Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Mon, 18 Apr 2022 17:25:45 -0400 Subject: libraries/libEMF: Remove .la files. Signed-off-by: B. Watson --- libraries/libEMF/libEMF.SlackBuild | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'libraries/libEMF') diff --git a/libraries/libEMF/libEMF.SlackBuild b/libraries/libEMF/libEMF.SlackBuild index 88889330d1..6a0cf19844 100644 --- a/libraries/libEMF/libEMF.SlackBuild +++ b/libraries/libEMF/libEMF.SlackBuild @@ -3,12 +3,16 @@ # Slackware build script for libEMF # written by , hereby in the public domain +# 20220418 bkw: Modified by SlackBuilds.org, BUILD=2: +# - remove .la files. Again. +# - remove useless INSTALL from doc dir. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=libEMF SRCNAM=libemf VERSION=${VERSION:-1.0.13} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -20,9 +24,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 @@ -57,11 +58,12 @@ cd $SRCNAM-$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ - -o -perm 511 \) -exec chmod 755 {} \; -o \ + -o -perm 511 \) -exec chmod 755 {} \+ -o \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+ # static library is activated because the perl extension needs it +# 20220418 bkw: I see "--disable-static" here. Also, what perl extension? CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ @@ -75,13 +77,11 @@ CXXFLAGS="$SLKCFLAGS" \ --build=$ARCH-slackware-linux make -make install DESTDIR=$PKG - -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 +make install-strip DESTDIR=$PKG +rm -f $PKG/usr/lib*/*.la mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a AUTHORS ChangeLog COPYING COPYING.LIB INSTALL NEWS README \ +cp -a AUTHORS ChangeLog COPYING COPYING.LIB NEWS README \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -- cgit v1.2.3-65-gdbad