summaryrefslogtreecommitdiffstats
path: root/libraries
diff options
context:
space:
mode:
author B. Watson <yalhcru@gmail.com>2022-04-25 02:21:47 -0400
committer B. Watson <yalhcru@gmail.com>2022-04-29 10:30:53 -0400
commit63caf0fd2ef1d5286367223f149e6b54903f32be (patch)
treefa43f763fa4c2a3eba0a794cb5dc4689e0184c7a /libraries
parent96d0354b6dfd5c5084a615162677c8f4b94d3295 (diff)
downloadslackbuilds-63caf0fd2ef1d5286367223f149e6b54903f32be.tar.gz
slackbuilds-63caf0fd2ef1d5286367223f149e6b54903f32be.tar.xz
libraries/xalan-c: Fix doc permissions.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'libraries')
-rw-r--r--libraries/xalan-c/xalan-c.SlackBuild20
1 files changed, 10 insertions, 10 deletions
diff --git a/libraries/xalan-c/xalan-c.SlackBuild b/libraries/xalan-c/xalan-c.SlackBuild
index 6bf9f7a5f0..7e79f60e40 100644
--- a/libraries/xalan-c/xalan-c.SlackBuild
+++ b/libraries/xalan-c/xalan-c.SlackBuild
@@ -32,26 +32,26 @@
# To capture the current SVN trunk to a local directory:
# mkdir svn ; cd svn ; svn co http://svn.apache.org/repos/asf/xalan/c/trunk .
+# 20220425 bkw: Modified by SlackBuilds.org, BUILD=2:
+# - fix doc permissions.
+# - i486 => i586.
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=xalan-c
VERSION=${VERSION:-1.11_1335373}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
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
@@ -61,8 +61,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -93,9 +93,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 {} \+
XALANCROOT=$(pwd) \
XERCESCROOT="/usr" \
@@ -120,7 +120,7 @@ find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a KEYS LICENSE NOTICE readme.html README $PKG/usr/doc/$PRGNAM-$VERSION
+install -m0644 KEYS LICENSE NOTICE readme.html README $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install