misc/recode: Strip binaries.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
6e5c0c6f00
commit
59920fcb01
|
@ -30,13 +30,18 @@
|
|||
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
# 20220412 bkw: Modified by SlackBuilds.org, BUILD=4:
|
||||
# - use correct github URL.
|
||||
# - strip binary and library.
|
||||
# - remove useless ABOUT-NLS from doc dir.
|
||||
|
||||
cd $(dirname $0) ; CWD=$(pwd)
|
||||
|
||||
PRGNAM=recode
|
||||
SRCNAM=Recode
|
||||
VERSION=${VERSION:-3.7_beta2}
|
||||
SRCVER=$(echo $VERSION | tr _ -)
|
||||
BUILD=${BUILD:-3}
|
||||
BUILD=${BUILD:-4}
|
||||
TAG=${TAG:-_SBo}
|
||||
PKGTYPE=${PKGTYPE:-tgz}
|
||||
|
||||
|
@ -85,9 +90,9 @@ cd $SRCNAM-$SRCVER
|
|||
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 {} \+
|
||||
|
||||
# allow recode to be built on a gcc that is not ancient -ryan
|
||||
sed -i "s/bool ignore : 2;/bool ignore : 1;/g" ./src/recodext.h
|
||||
|
@ -106,16 +111,14 @@ CXXFLAGS="$SLKCFLAGS" \
|
|||
--target=$ARCH-slackware-linux
|
||||
|
||||
make
|
||||
make install DESTDIR=$PKG
|
||||
|
||||
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
|
||||
make install-strip DESTDIR=$PKG
|
||||
gzip -9 $PKG/usr/man/man*/*
|
||||
|
||||
rm -f $PKG/usr/info/dir
|
||||
gzip -9 $PKG/usr/info/*.info*
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a ABOUT-NLS AUTHORS COPYING* NEWS README THANKS TODO \
|
||||
cp -a AUTHORS COPYING* NEWS README THANKS TODO \
|
||||
$PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
PRGNAM="recode"
|
||||
VERSION="3.7_beta2"
|
||||
HOMEPAGE="https://github.com/pinard/Recode"
|
||||
DOWNLOAD="https://github.com/pinard/Recode/archive/v3.7-beta2.tar.gz"
|
||||
DOWNLOAD="https://github.com/pinard/Recode/archive/v3.7-beta2/Recode-3.7-beta2.tar.gz"
|
||||
MD5SUM="fd0e609d54fad968fcb52a8eca2d6bf0"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
|
|
Loading…
Reference in New Issue