mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
system/cnijfilter2: Strip binaries.
Signed-off-by: B. Watson <yalhcru@gmail.com>
This commit is contained in:
parent
58e25350fb
commit
06607be732
1 changed files with 13 additions and 3 deletions
|
@ -22,11 +22,16 @@
|
|||
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
# 20220301 bkw: Modified by SlackBuilds.org, BUILD=2:
|
||||
# - strip binaries.
|
||||
# - relative symlinks.
|
||||
# - remove INSTALL from doc dir.
|
||||
|
||||
cd $(dirname $0) ; CWD=$(pwd)
|
||||
|
||||
PRGNAM=cnijfilter2
|
||||
VERSION=${VERSION:-6.30.1}
|
||||
BUILD=${BUILD:-1}
|
||||
BUILD=${BUILD:-2}
|
||||
TAG=${TAG:-_SBo}
|
||||
PKGTYPE=${PKGTYPE:-tgz}
|
||||
|
||||
|
@ -144,6 +149,10 @@ mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}/bjlib2
|
|||
install -c -o lp -g lp -m 644 com/ini/cnnet.ini $PKG/usr/lib${LIBDIRSUFFIX}/bjlib2/
|
||||
install -c -m 755 com/libs_bin_${BITS}/*.so.* $PKG/usr/lib${LIBDIRSUFFIX}/
|
||||
|
||||
# 20220409 bkw: this bit of template was missing.
|
||||
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
|
||||
|
||||
# Run ldconfig in the build script so that /usr/lib{64}/libcn*.so
|
||||
# are tracked by doinst.sh
|
||||
if [ -x /sbin/ldconfig ]; then
|
||||
|
@ -153,9 +162,10 @@ fi
|
|||
mkdir -p $PKG/usr/share/ppd/cnijfilter2 $PKG/usr/share/cups/model
|
||||
cp -a ppd/*.ppd $PKG/usr/share/ppd/cnijfilter2
|
||||
|
||||
# 20220409 bkw: made these relative symlinks.
|
||||
PPD_FILES=$( cd $PKG/usr/share/ppd/cnijfilter2 ; ls *.ppd )
|
||||
for f in $PPD_FILES; do
|
||||
ln -fs /usr/share/ppd/cnijfilter2/${f} $PKG/usr/share/cups/model/${f}
|
||||
ln -fs ../../ppd/cnijfilter2/${f} $PKG/usr/share/cups/model/${f}
|
||||
done
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/lproptions
|
||||
|
@ -166,7 +176,7 @@ cat ppd/NEWS > $PKG/usr/doc/$PRGNAM-$VERSION/NEWS
|
|||
for dir in $common_pkg; do
|
||||
mkdir $PKG/usr/doc/$PRGNAM-$VERSION/$dir
|
||||
pushd $dir
|
||||
for file in AUTHORS COPYING ChangeLog INSTALL LICENSE* NEWS README; do
|
||||
for file in AUTHORS COPYING ChangeLog LICENSE* NEWS README; do
|
||||
[ -f $file ] && cp -a $file $PKG/usr/doc/$PRGNAM-$VERSION/$dir
|
||||
done
|
||||
popd
|
||||
|
|
Loading…
Reference in a new issue