libraries/protobuf-c: Updated for version 1.4.1.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Marek Šrejma 2022-08-12 22:12:21 +07:00 committed by Willy Sudiarto Raharjo
parent 46dc1080bb
commit d9ee595bfd
No known key found for this signature in database
GPG key ID: 3F617144D7238786
2 changed files with 10 additions and 13 deletions

View file

@ -25,8 +25,8 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=protobuf-c
VERSION=${VERSION:-1.4.0}
BUILD=${BUILD:-2}
VERSION=${VERSION:-1.4.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -50,13 +50,10 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
if [ "$ARCH" = "i586" ] || [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=$ARCH -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
elif [ "$ARCH" = "x86_64" ] || [ "$ARCH" = "aarch64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
else
@ -90,8 +87,8 @@ CXXFLAGS="$SLKCFLAGS" \
make
make install DESTDIR=$PKG
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 -print0 | xargs -0 file | grep -e "executable" -e "shared object" | \
grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -ar TODO LICENSE ChangeLog README.md \

View file

@ -1,8 +1,8 @@
PRGNAM="protobuf-c"
VERSION="1.4.0"
VERSION="1.4.1"
HOMEPAGE="https://github.com/protobuf-c/protobuf-c"
DOWNLOAD="https://github.com/protobuf-c/protobuf-c/releases/download/v1.4.0/protobuf-c-1.4.0.tar.gz"
MD5SUM="10e1103a012ce0877c32367949a2fa6e"
DOWNLOAD="https://github.com/protobuf-c/protobuf-c/releases/download/v1.4.1/protobuf-c-1.4.1.tar.gz"
MD5SUM="4c17d70317ce9fc4cca9690377284659"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="protobuf3"