aboutsummaryrefslogtreecommitdiff
path: root/system/man-pages-ru/man-pages-ru.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/man-pages-ru/man-pages-ru.SlackBuild')
-rw-r--r--system/man-pages-ru/man-pages-ru.SlackBuild33
1 files changed, 16 insertions, 17 deletions
diff --git a/system/man-pages-ru/man-pages-ru.SlackBuild b/system/man-pages-ru/man-pages-ru.SlackBuild
index 568b06ec0227d..ad1a76d0947dc 100644
--- a/system/man-pages-ru/man-pages-ru.SlackBuild
+++ b/system/man-pages-ru/man-pages-ru.SlackBuild
@@ -22,12 +22,17 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20201105 bkw: This hasn't been updated in 7+ years, and I'm not sure
+# it ever worked properly with 14.2's man command. Update to latest
+# version and document how to get this stuff to work with man-db and a
+# utf-8 capable terminal.
+
PRGNAM=man-pages-ru
-VERSION=${VERSION:-3.41_20130102} # Set the version to something sane.
+VERSION=${VERSION:-5.03_20191017} # Set the version to something sane.
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-SRCVERSION=${SRCVERSION:-$(echo $PRGNAM_*.tar.bz2 | rev | cut -f 3- -d . | cut -f 1 -d _ | rev)}
+SRCVERSION="$(echo $PRGNAM_*.tar.bz2 | rev | cut -f 3- -d . | cut -f 1 -d _ | rev)"
ARCH=noarch
@@ -45,27 +50,21 @@ rm -rf $PRGNAM\_$SRCVERSION
tar xvf $CWD/$PRGNAM\_$SRCVERSION.tar.bz2
cd $PRGNAM\_$SRCVERSION
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 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 {} \+
+
+# This one is included in Slackware.
+rm man5/passwd.5
-mkdir -p $PKG/usr/man/ru
+mkdir -p $PKG/usr/man/ru.UTF-8
for section in 1 2 3 4 5 6 7 8 ; do
- mv man$section $PKG/usr/man/ru
+ mv man$section $PKG/usr/man/ru.UTF-8
done
-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
-
-# This one is included in Slackware.
-rm $PKG/usr/man/ru/man5/passwd.5.gz
+find $PKG/usr/man -type f -exec gzip -9 {} \+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a \
- README License \
- $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a README License $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install