diff options
author | Isaac Yu <isaacyu1@isaacyu1.com> | 2022-12-17 13:14:34 -0800 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-12-18 09:32:12 +0700 |
commit | bb5b6fab1c0112012e0c3087f076110be60bdb2b (patch) | |
tree | 189d94ba786b5cb5d94c482772ce5dd5670a20c3 /libraries | |
parent | 0a64ef262db43bf5535a90846b210c27fdece651 (diff) |
libraries/librsync: Update for 2.3.2 (+new maintainer)
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries')
-rw-r--r-- | libraries/librsync/librsync.SlackBuild | 43 | ||||
-rw-r--r-- | libraries/librsync/librsync.info | 12 |
2 files changed, 28 insertions, 27 deletions
diff --git a/libraries/librsync/librsync.SlackBuild b/libraries/librsync/librsync.SlackBuild index 5f5a6e9b11ee..a200531d8268 100644 --- a/libraries/librsync/librsync.SlackBuild +++ b/libraries/librsync/librsync.SlackBuild @@ -3,6 +3,7 @@ # Slackware build script for librsync. # Written by Lyle Sigurdson <lyle_s@myrealbox.com>. # Copyright 2020 Ricardo J. Barberis <ricardo.barberis@gmail.com> +# Copyright 2022 Isaac Yu <isaacyu1@isaacyu1.com> # # Free for any use; no warranty. @@ -11,8 +12,8 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=librsync -VERSION=${VERSION:-0.9.7} -BUILD=${BUILD:-2} +VERSION=${VERSION:-2.3.2} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -65,30 +66,30 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -CFLAGS="$SLKCFLAGS" \ -CXXFLAGS="$SLKCFLAGS" \ -./configure \ - --prefix=/usr \ - --libdir=/usr/lib${LIBDIRSUFFIX} \ - --enable-shared \ - --enable-static \ - --disable-dependency-tracking - -make -make install-strip DESTDIR=$PKG - -( 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 -) +mkdir build +cd build + cmake \ + -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_MANDIR=/usr/man \ + -DBUILD_TESTS=yes \ + -DCMAKE_BUILD_TYPE=Release .. + make + make install DESTDIR=$PKG +cd .. + +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +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 mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a AUTHORS COPYING ChangeLog NEWS README THANKS TODO \ +cp -a AUTHORS CONTRIBUTING.md COPYING NEWS.md README.md THANKS TODO.md \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -rm -f $PKG/usr/lib*/*.la - mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc diff --git a/libraries/librsync/librsync.info b/libraries/librsync/librsync.info index 7af0bd8e88d2..bd79d8bcb8c2 100644 --- a/libraries/librsync/librsync.info +++ b/libraries/librsync/librsync.info @@ -1,10 +1,10 @@ PRGNAM="librsync" -VERSION="0.9.7" -HOMEPAGE="http://librsync.sourceforge.net/" -DOWNLOAD="http://downloads.sourceforge.net/librsync/librsync-0.9.7.tar.gz" -MD5SUM="24cdb6b78f45e0e83766903fd4f6bc84" +VERSION="2.3.2" +HOMEPAGE="https://librsync.github.io/" +DOWNLOAD="https://github.com/librsync/librsync/archive/v2.3.2/librsync-2.3.2.tar.gz" +MD5SUM="74ba5b50de5ba3d595828e9109fa5fce" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" -MAINTAINER="Ricardo J. Barberis" -EMAIL="ricardo.barberis@gmail.com" +MAINTAINER="Isaac Yu" +EMAIL="isaacyu1@isaacyu1.com" |