diff options
author | B. Watson <yalhcru@gmail.com> | 2022-04-18 17:32:19 -0400 |
---|---|---|
committer | B. Watson <yalhcru@gmail.com> | 2022-04-18 17:32:19 -0400 |
commit | 8a091cbf41f9b032928d333ee9da29da985cca47 (patch) | |
tree | 401dea6841b19823d0f8973cac1870d6add1d15f | |
parent | 362023e7759e13b5b9b24ac3d71582898f4ef01f (diff) |
libraries/jbigkit: Strip binaries.
Signed-off-by: B. Watson <yalhcru@gmail.com>
-rw-r--r-- | libraries/jbigkit/jbigkit.SlackBuild | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/libraries/jbigkit/jbigkit.SlackBuild b/libraries/jbigkit/jbigkit.SlackBuild index 8e070f3c5c457..dd7811bd6815b 100644 --- a/libraries/jbigkit/jbigkit.SlackBuild +++ b/libraries/jbigkit/jbigkit.SlackBuild @@ -3,6 +3,13 @@ # Slackware build script for jbigkit # Written by Iskar Enev <iskar.enev[@]gmail.com> +# 20220418 bkw: Modified by SlackBuilds.org, BUILD=3: +# - strip binaries and libraries. +# - rename INSTALL in doc dir (it's not useless; shut sbopkglint up). +# Note to maintainer: you should consider getting rid of the static +# libraries. Our policy is not to ship static libs unless they are +# required by some other build. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=jbigkit @@ -19,9 +26,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 @@ -56,9 +60,9 @@ cd $PRGNAM-$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 {} \+ # Build the shared library first cd libjbig @@ -72,9 +76,6 @@ cd - # ... and all the rest make CCFLAGS="$SLKCFLAGS" -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 - # There is no "install" target in the Makefile... # The man 5 files in pbmtools are inclueded netpbm-10.35.2 @@ -86,8 +87,12 @@ gzip -9 $PKG/usr/man/man1/*.1 cp -a libjbig/jbig.h libjbig/jbig85.h libjbig/jbig_ar.h $PKG/usr/include cp -a libjbig/libjbig.* libjbig/libjbig85.a $PKG/usr/lib$LIBDIRSUFFIX -cp -a ANNOUNCE CHANGES INSTALL COPYING TODO libjbig/*.txt examples \ +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 + +cp -a ANNOUNCE CHANGES COPYING TODO libjbig/*.txt examples \ $PKG/usr/doc/$PRGNAM-$VERSION +cp -a INSTALL $PKG/usr/doc/$PRGNAM-$VERSION/README cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |