librsync: Update to match the latest cmake template

This commit is contained in:
Eugen Wissner 2022-11-24 09:11:22 +01:00
parent 729946afaf
commit b8d79cf31f
Signed by: belka
GPG Key ID: A27FDC1E8EE902C0

View File

@ -2,7 +2,7 @@
# Slackware build script for librsync.
# Written by Lyle Sigurdson <lyle_s@myrealbox.com>.
# Copyright (C) 2020-2021 Ricardo J. Barberis <ricardo.barberis@gmail.com>
# Copyright 2020 Ricardo J. Barberis <ricardo.barberis@gmail.com>
#
# Free for any use; no warranty.
@ -18,7 +18,7 @@ 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
@ -36,8 +36,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"
@ -74,7 +74,7 @@ cd build
-DCMAKE_INSTALL_MANDIR=/usr/man \
-DCMAKE_BUILD_TYPE=Release ..
make
make DESTDIR=$PKG install
make install/strip DESTDIR=$PKG
cd ..
( cd $PKG/usr/man