libraries/restbed: Updated for version 4.6

Signed-off-by: Andre Barboza <bmg.andre@gmail.com>
This commit is contained in:
Andre Barboza 2017-07-30 13:10:20 -03:00 committed by Willy Sudiarto Raharjo
parent 9e2dc537ba
commit 76eda416eb
3 changed files with 7 additions and 22 deletions

View File

@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=restbed
VERSION=${VERSION:-4.0}
VERSION=${VERSION:-4.6}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@ -69,15 +69,12 @@ 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 {} \;
patch -p1 < $CWD/restbed.patch
mkdir -p build
cd build
cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DLIB_SUFFIX=${LIBDIRSUFFIX} \
-DCMAKE_INSTALL_LIBDIR=lib${LIBDIRSUFFIX} \
-DBUILD_SSL=ON \
-DBUILD_SHARED=ON \
-DCMAKE_BUILD_TYPE=Release ..
@ -89,7 +86,7 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -raf LICENSE README.md STANDARDS.md example legal $PKG/usr/doc/$PRGNAM-$VERSION
cp -raf LICENSE README.md example legal $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install

View File

@ -1,10 +1,10 @@
PRGNAM="restbed"
VERSION="4.0"
VERSION="4.6"
HOMEPAGE="https://github.com/corvusoft/restbed"
DOWNLOAD="https://github.com/Corvusoft/restbed/archive/4.0/restbed-4.0.tar.gz"
MD5SUM="2b32fcc3c4014849718058c694f1b49c"
DOWNLOAD="https://github.com/Corvusoft/restbed/archive/4.6/restbed-4.6.tar.gz"
MD5SUM="f80581e6c7a303be09a2849f1e9dd496"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="asio"
REQUIRES="asio kashmir"
MAINTAINER="Andre Barboza"
EMAIL="bmg.andre@gmail.com"

View File

@ -1,12 +0,0 @@
Only in restbed-4.0: .CMakeLists.txt.un~
diff -ur restbed-4.0.old/CMakeLists.txt restbed-4.0/CMakeLists.txt
--- restbed-4.0.old/CMakeLists.txt 2016-04-14 18:38:26.000000000 -0300
+++ restbed-4.0/CMakeLists.txt 2017-01-03 18:15:29.883784733 -0200
@@ -71,5 +71,5 @@
install( FILES "${INCLUDE_DIR}/${PROJECT_NAME}" DESTINATION "include" )
install( FILES ${BUILD_ARTIFACTS} DESTINATION "include/corvusoft/${PROJECT_NAME}" )
install( TARGETS ${PROJECT_NAME}
- LIBRARY DESTINATION "library"
- ARCHIVE DESTINATION "library" COMPONENT library )
+ LIBRARY DESTINATION "lib${LIB_SUFFIX}"
+ ARCHIVE DESTINATION "lib${LIB_SUFFIX}" COMPONENT library )