diff options
Diffstat (limited to 'libraries/xlt/xlt.SlackBuild')
-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 f48cc072acffd..a502de0ae5669 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 |