diff options
Diffstat (limited to 'system/man-pages-es/man-pages-es.SlackBuild')
-rw-r--r-- | system/man-pages-es/man-pages-es.SlackBuild | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/system/man-pages-es/man-pages-es.SlackBuild b/system/man-pages-es/man-pages-es.SlackBuild index b3b0ac57b4..a883049aa2 100644 --- a/system/man-pages-es/man-pages-es.SlackBuild +++ b/system/man-pages-es/man-pages-es.SlackBuild @@ -2,23 +2,22 @@ # Slackware build script for man-pages-es -# Written by B. Watson (yalhcru@gmail.com) +# Written by B. Watson (urchlay@slackware.uk) # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. +# 20230109 bkw: BUILD=2: get rid of non-manpage files from /usr/man. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=man-pages-es VERSION=${VERSION:-1.55} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} ARCH=noarch -# 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 @@ -43,11 +42,8 @@ rm -rf $PRGNAM-$VERSION $EXTRAPRG-$EXTRAVER tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 tar xvf $CWD/$EXTRAPRG-$EXTRAVER.tar.gz 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 \ - \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ + \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+ # in case of dupes between man-pages-es main package and -extra, we use the # one from -extra. @@ -58,18 +54,19 @@ for i in $PRGNAM-$VERSION/man? $EXTRAPRG-$EXTRAVER/man?; do cp $i/* $dir done +PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION +mkdir -p $PKGDOC/old +mv $PKG/usr/man/es/man1/{README,LEAME} $PKGDOC/old + find $PKG/usr/man -type f -print0 | xargs -0 gzip -9 mv $EXTRAPRG-$EXTRAVER/README $EXTRAPRG-$EXTRAVER/README.extra -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a */LEEME* */README* */CHANGES* */CAMBIOS* */P* \ - $PKG/usr/doc/$PRGNAM-$VERSION -cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +cp -a */LEEME* */README* */CHANGES* */CAMBIOS* */P* $PKGDOC +cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc -#cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |