diff options
Diffstat (limited to 'libraries/zeromq')
-rw-r--r-- | libraries/zeromq/zeromq.SlackBuild | 34 | ||||
-rw-r--r-- | libraries/zeromq/zeromq.info | 10 |
2 files changed, 32 insertions, 12 deletions
diff --git a/libraries/zeromq/zeromq.SlackBuild b/libraries/zeromq/zeromq.SlackBuild index a9c738e305..61ec3a22b0 100644 --- a/libraries/zeromq/zeromq.SlackBuild +++ b/libraries/zeromq/zeromq.SlackBuild @@ -1,10 +1,11 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for Zeromq # Written by Patrick Pippen (dabittweiler@gmail.com) -# Copyright 2018 Isaac Yu <isaacyu1@isaacyu1.com> +# Copyright 2018-2021 Isaac Yu <isaacyu@protonmail.com> +# Copyright 2023 Yth | Pont-en-Royans, France | yth@ythogtha.org # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,10 +25,13 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=zeromq -VERSION=${VERSION:-4.3.1} +VERSION=${VERSION:-4.3.5} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -37,7 +41,14 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +# If the variable PRINT_PACKAGE_NAME is set, then this script will report what +# the name of the created package would be, and then exit. This information +# could be useful to other scripts. +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -51,6 +62,9 @@ elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" +elif [ "$ARCH" = "aarch64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" else SLKCFLAGS="-O2" LIBDIRSUFFIX="" @@ -82,11 +96,14 @@ CXXFLAGS="$SLKCFLAGS" \ --mandir=/usr/man \ --docdir=/usr/doc/$PRGNAM-$VERSION \ --enable-static=no \ + --disable-Werror \ --build=$ARCH-slackware-linux make make install DESTDIR=$PKG +rm -rf $PKG/usr/lib${LIBDIRSUFFIX}/*.la + 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 @@ -94,12 +111,15 @@ 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 COPYING.LESSER ChangeLog NEWS doc/ \ - $PKG/usr/doc/$PRGNAM-$VERSION +cp -a AUTHORS ChangeLog LICENSE NEWS README* \ + $PKG/usr/doc/$PRGNAM-$VERSION +mkdir $PKG/usr/doc/$PRGNAM-$VERSION/html $PKG/usr/doc/$PRGNAM-$VERSION/txt +cp -a doc/*.html $PKG/usr/doc/$PRGNAM-$VERSION/html +cp -a doc/*.txt $PKG/usr/doc/$PRGNAM-$VERSION/txt cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/libraries/zeromq/zeromq.info b/libraries/zeromq/zeromq.info index f35efe6ef8..864ec9d3dd 100644 --- a/libraries/zeromq/zeromq.info +++ b/libraries/zeromq/zeromq.info @@ -1,10 +1,10 @@ PRGNAM="zeromq" -VERSION="4.3.1" +VERSION="4.3.5" HOMEPAGE="http://www.zeromq.org/" -DOWNLOAD="https://github.com/zeromq/libzmq/releases/download/v4.3.1/zeromq-4.3.1.tar.gz" -MD5SUM="64cbf3577afdbfda30358bc757a6ac83" +DOWNLOAD="https://github.com/zeromq/libzmq/releases/download/v4.3.5/zeromq-4.3.5.tar.gz" +MD5SUM="ae933b1e98411fd7cb8309f9502d2737" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" -MAINTAINER="Isaac Yu" -EMAIL="isaacyu1@isaacyu1.com" +MAINTAINER="Yth - Arnaud" +EMAIL="yth@ythogtha.org" |