Browse Source

d/protobuf: Upgraded to protobuf-3.2.0.

slackware-14.2
Damien Goutte-Gattat 5 years ago
parent
commit
6c8575243b
  1. 3
      d/protobuf/checksums
  2. 1
      d/protobuf/protobuf-3.1.0.tar.gz.sha1
  3. 18
      d/protobuf/protobuf.SlackBuild

3
d/protobuf/checksums

@ -0,0 +1,3 @@
2a25c2b71c707c5552ec9afdfb22532a93a339e1ca5d38f163fe4107af08c54c protobuf-3.2.0.tar.gz
407992e9ef17a08339cd383c33dbaff923969cfa01f8e4ceaeea679400016d85 googlemock-1.7.0.zip
b58cb7547a28b2c718d1e38aee18a3659c9e3ff52440297e965f5edffe34b6d0 googletest-1.7.0.zip

1
d/protobuf/protobuf-3.1.0.tar.gz.sha1

@ -1 +0,0 @@
e5f59dc4202fd59894f5cb9310b3d6cb2f0a2ef7 protobuf-3.1.0.tar.gz

18
d/protobuf/protobuf.SlackBuild

@ -27,7 +27,7 @@
# Source package infos
NAMESRC=${NAMESRC:-protobuf}
VERSION=${VERSION:-3.1.0}
VERSION=${VERSION:-3.2.0}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-https://github.com/google/protobuf/archive/v$VERSION.tar.gz}
@ -72,12 +72,20 @@ x86_64)
;;
esac
# Get and verify the source archive
# Get the source archives
if [ ! -r $ARCHIVE ]; then
wget -c -O $ARCHIVE.part "$WGET"
mv $ARCHIVE.part $ARCHIVE
fi
sha1sum -c $ARCHIVE.sha1
if [ ! -r googlemock-1.7.0.zip ]; then
wget -c -O googlemock-1.7.0.zip.part https://github.com/google/googlemock/archive/release-1.7.0.zip
mv googlemock-1.7.0.zip.part googlemock-1.7.0.zip
fi
if [ ! -r googletest-1.7.0.zip ]; then
wget -c -O googletest-1.7.0.zip.part https://github.com/google/googletest/archive/release-1.7.0.zip
mv googletest-1.7.0.zip.part googletest-1.7.0.zip
fi
sha256sum -c checksums
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
# Compile
@ -85,6 +93,10 @@ cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
unzip $CWD/googlemock-1.7.0.zip
mv googlemock-release-1.7.0 gmock
unzip $CWD/googletest-1.7.0.zip
mv googletest-release-1.7.0 gmock/gtest
./autogen.sh
CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \

Loading…
Cancel
Save