aboutsummaryrefslogtreecommitdiff
path: root/misc/recode/recode.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'misc/recode/recode.SlackBuild')
-rw-r--r--misc/recode/recode.SlackBuild19
1 files changed, 11 insertions, 8 deletions
diff --git a/misc/recode/recode.SlackBuild b/misc/recode/recode.SlackBuild
index 33bfedc55975..136769239ccd 100644
--- a/misc/recode/recode.SlackBuild
+++ b/misc/recode/recode.SlackBuild
@@ -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