diff options
author | B. Watson <yalhcru@gmail.com> | 2022-04-19 16:44:04 -0400 |
---|---|---|
committer | B. Watson <yalhcru@gmail.com> | 2022-04-19 16:44:04 -0400 |
commit | 2d18f5df926c53debe53d98257b9057529cc96b5 (patch) | |
tree | 0cbc4debd353a4b2e11365d06ff8ef88aaa7bb7b | |
parent | 74d9624f60842740bed0d6267b2ae520347fd826 (diff) | |
download | slackbuilds-2d18f5df926c53debe53d98257b9057529cc96b5.tar.gz |
libraries/xlt: Fix docs.
Signed-off-by: B. Watson <yalhcru@gmail.com>
-rw-r--r-- | libraries/xlt/xlt.SlackBuild | 37 |
1 files changed, 16 insertions, 21 deletions
diff --git a/libraries/xlt/xlt.SlackBuild b/libraries/xlt/xlt.SlackBuild index f48cc072ac..a502de0ae5 100644 --- a/libraries/xlt/xlt.SlackBuild +++ b/libraries/xlt/xlt.SlackBuild @@ -5,6 +5,11 @@ # Written by Vincent Batts, vbatts@batts.mine.nu # Modified by SlackBuilds.org +# 20220419 bkw: Modified by SlackBuilds.org, BUILD=3: +# - fix doc permissions. +# - remove useless INSTALL from doc dir. +# - i486 => i586. + set -e cd $(dirname $0) ; CWD=$(pwd) @@ -12,22 +17,19 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=xlt BIG_PRGNAM=Xlt VERSION=${VERSION:-11.1.11} -BUILD=${BUILD:-2} +BUILD=${BUILD:-3} 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 @@ -37,8 +39,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" @@ -55,14 +57,14 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $BIG_PRGNAM-$VERSION -tar xzvf $CWD/$BIG_PRGNAM-$VERSION.tar.gz || exit 1 +tar xvf $CWD/$BIG_PRGNAM-$VERSION.tar.gz cd $BIG_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 \ + -exec chmod 755 {} \+ \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \; || exit 1 + -exec chmod 644 {} \+ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ @@ -73,21 +75,14 @@ CXXFLAGS="$SLKCFLAGS" \ --localstatedir=/var \ --mandir=/usr/man || exit 1 -make || exit 1 -make install DESTDIR=$PKG || exit 1 - -find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ - | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true - -( cd $PKG/usr/man - find . -type f -exec gzip -9 {} \; - for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done -) +make +make install-strip DESTDIR=$PKG +gzip -9 $PKG/usr/man/man*/* mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION mv -v $PKG/usr/$BIG_PRGNAM/doc/* $PKG/usr/doc/$PRGNAM-$VERSION/ rm -rf $PKG/usr/$BIG_PRGNAM -cp -a INSTALL COPYING COPYING.LIB AUTHORS ChangeLog NEWS README $PKG/usr/doc/$PRGNAM-$VERSION +install -m0644 COPYING* AUTHORS ChangeLog NEWS README $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild rm -f $PKG/usr/lib*/*.la |