librsync: Update to match the latest cmake template
This commit is contained in:
parent
729946afaf
commit
b8d79cf31f
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# Slackware build script for librsync.
|
# Slackware build script for librsync.
|
||||||
# Written by Lyle Sigurdson <lyle_s@myrealbox.com>.
|
# 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.
|
# Free for any use; no warranty.
|
||||||
|
|
||||||
@ -18,7 +18,7 @@ PKGTYPE=${PKGTYPE:-tgz}
|
|||||||
|
|
||||||
if [ -z "$ARCH" ]; then
|
if [ -z "$ARCH" ]; then
|
||||||
case "$( uname -m )" in
|
case "$( uname -m )" in
|
||||||
i?86) ARCH=i486 ;;
|
i?86) ARCH=i586 ;;
|
||||||
arm*) ARCH=arm ;;
|
arm*) ARCH=arm ;;
|
||||||
*) ARCH=$( uname -m ) ;;
|
*) ARCH=$( uname -m ) ;;
|
||||||
esac
|
esac
|
||||||
@ -36,8 +36,8 @@ TMP=${TMP:-/tmp/SBo}
|
|||||||
PKG=$TMP/package-$PRGNAM
|
PKG=$TMP/package-$PRGNAM
|
||||||
OUTPUT=${OUTPUT:-/tmp}
|
OUTPUT=${OUTPUT:-/tmp}
|
||||||
|
|
||||||
if [ "$ARCH" = "i486" ]; then
|
if [ "$ARCH" = "i586" ]; then
|
||||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
|
||||||
LIBDIRSUFFIX=""
|
LIBDIRSUFFIX=""
|
||||||
elif [ "$ARCH" = "i686" ]; then
|
elif [ "$ARCH" = "i686" ]; then
|
||||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||||
@ -73,8 +73,8 @@ cd build
|
|||||||
-DCMAKE_INSTALL_LIBDIR=lib${LIBDIRSUFFIX} \
|
-DCMAKE_INSTALL_LIBDIR=lib${LIBDIRSUFFIX} \
|
||||||
-DCMAKE_INSTALL_MANDIR=/usr/man \
|
-DCMAKE_INSTALL_MANDIR=/usr/man \
|
||||||
-DCMAKE_BUILD_TYPE=Release ..
|
-DCMAKE_BUILD_TYPE=Release ..
|
||||||
make
|
make
|
||||||
make DESTDIR=$PKG install
|
make install/strip DESTDIR=$PKG
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
( cd $PKG/usr/man
|
( cd $PKG/usr/man
|
||||||
|
Loading…
Reference in New Issue
Block a user