diff options
Diffstat (limited to 'libraries/crossguid')
-rw-r--r-- | libraries/crossguid/Makefile.crossguid | 33 | ||||
-rw-r--r-- | libraries/crossguid/README | 7 | ||||
-rw-r--r-- | libraries/crossguid/crossguid.SlackBuild | 45 | ||||
-rw-r--r-- | libraries/crossguid/crossguid.info | 10 | ||||
-rw-r--r-- | libraries/crossguid/slack-desc | 6 |
5 files changed, 44 insertions, 57 deletions
diff --git a/libraries/crossguid/Makefile.crossguid b/libraries/crossguid/Makefile.crossguid deleted file mode 100644 index a9e10b8ee3..0000000000 --- a/libraries/crossguid/Makefile.crossguid +++ /dev/null @@ -1,33 +0,0 @@ -override CXXFLAGS += -std=c++11 -DGUID_LIBUUID -fPIC -override LDFLAGS += -luuid -MAJOR := 0 -MINOR := 0 -VERSION := $(MAJOR).$(MINOR) -NAME = crossguid - -INCLUDEDIR = /usr/include -LIBDIR = /usr/lib - -LINK.o = $(LINK.cc) - -SRC = $(wildcard *.cpp) -OBJ = $(SRC:.cpp=.o) -LIB = lib$(NAME).so.$(VERSION) - -$(LIB): guid.o - $(CXX) $(LDFLAGS) -shared -Wl,-soname,lib$(NAME).so.$(MAJOR) $^ -o $@ - -test: $(OBJ) - -install: guid.h $(LIB) - install -dm 0755 $(DESTDIR)$(INCLUDEDIR) - install -pm 0644 guid.h $(DESTDIR)$(INCLUDEDIR) - install -dm 0755 $(DESTDIR)$(LIBDIR) - install -pm 0755 $(LIB) $(DESTDIR)$(LIBDIR) - ln -sf $(LIB) $(DESTDIR)$(LIBDIR)/lib$(NAME).so - ln -sf $(LIB) $(DESTDIR)$(LIBDIR)/lib$(NAME).so.$(MAJOR) - -clean: - $(RM) $(OBJ) $(LIB) test - -.PHONY: run-test install clean diff --git a/libraries/crossguid/README b/libraries/crossguid/README index 06bdd5027a..635b56971d 100644 --- a/libraries/crossguid/README +++ b/libraries/crossguid/README @@ -1,3 +1,4 @@ -CrossGuid is a minimal, cross platform, C++ GUID library. It uses the best -native GUID/UUID generator on the given platform and had a generic class for -parsing, stringifying, and comparing IDs. +CrossGuid is a minimal, cross platform, C++ GUID library. It uses +the best native GUID/UUID generator on the given platform and has a +generic class for parsing, stringifying, and comparing IDs. The guid +generation technique is determined by your platform. diff --git a/libraries/crossguid/crossguid.SlackBuild b/libraries/crossguid/crossguid.SlackBuild index b313576706..801b3875e3 100644 --- a/libraries/crossguid/crossguid.SlackBuild +++ b/libraries/crossguid/crossguid.SlackBuild @@ -1,7 +1,8 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for crossguid +# Copyright 2023 Steven Voges <Oregon, USA> # Copyright 2016 Larry Hajali <larryhaja[at]gmail[dot]com> # All rights reserved. # @@ -22,11 +23,14 @@ # 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=crossguid -VERSION=${VERSION:-20160705} -MD5LONG=fef89a4174a7bf8cd99fa9154864ce9e8e3bf989 +VERSION=${VERSION:-20190529_ca1bf4b} +SRCVER=${SRCVER:-ca1bf4b810e2d188d04cb6286f957008ee1b7681} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -36,7 +40,11 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +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} @@ -60,9 +68,9 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$MD5LONG -tar xvf $CWD/$PRGNAM-$MD5LONG.tar.gz -cd $PRGNAM-$MD5LONG +rm -rf $PRGNAM-$SRCVER +tar xvf $CWD/$PRGNAM-$SRCVER.tar.gz +cd $PRGNAM-$SRCVER chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -70,21 +78,32 @@ 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 {} \; -cp $CWD/Makefile.$PRGNAM Makefile +#Fix compile on -current/gcc13 +sed -i '26i #include <cstdint>' src/guid.cpp +sed -i '1i #include <cstdint>' test/TestMain.cpp +sed -i '1i #include <cstdint>' test/Test.cpp -CXXFLAGS="$SLKCFLAGS" \ -make -make install DESTDIR=$PKG LIBDIR=/usr/lib${LIBDIRSUFFIX} +mkdir -p build +cd build + cmake \ + -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release .. + make + make install/strip 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 mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a LICENSE README.md $PKG/usr/doc/$PRGNAM-$VERSION +cp -a LICENSE README.md \ + $PKG/usr/doc/$PRGNAM-$VERSION 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/crossguid/crossguid.info b/libraries/crossguid/crossguid.info index 4e7879811d..b89cdcb22f 100644 --- a/libraries/crossguid/crossguid.info +++ b/libraries/crossguid/crossguid.info @@ -1,10 +1,10 @@ PRGNAM="crossguid" -VERSION="20160705" +VERSION="20190529_ca1bf4b" HOMEPAGE="https://github.com/graeme-hill/crossguid" -DOWNLOAD="https://github.com/graeme-hill/crossguid/archive/fef89a4/crossguid-fef89a4174a7bf8cd99fa9154864ce9e8e3bf989.tar.gz" -MD5SUM="6fde62abebeab99b8e960ae65e4aa3f3" +DOWNLOAD="https://github.com/graeme-hill/crossguid/archive/ca1bf4b810e2d188d04cb6286f957008ee1b7681/crossguid-ca1bf4b810e2d188d04cb6286f957008ee1b7681.tar.gz" +MD5SUM="d4a8d62f3f8d6d946be75cf5bfa92687" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" -MAINTAINER="Larry Hajali" -EMAIL="larryhaja[at]gmail[dot]com" +MAINTAINER="Steven Voges" +EMAIL="svoges.sbo@gmail.com" diff --git a/libraries/crossguid/slack-desc b/libraries/crossguid/slack-desc index 5e971dff6f..60d70d8c52 100644 --- a/libraries/crossguid/slack-desc +++ b/libraries/crossguid/slack-desc @@ -9,11 +9,11 @@ crossguid: crossguid (Lightweight cross platform C++ GUID/UUID library) crossguid: crossguid: CrossGuid is a minimal, cross platform, C++ GUID library. It uses the -crossguid: best native GUID/UUID generator on the given platform and had a -crossguid: generic class for parsing, stringifying, and comparing IDs. +crossguid: best native GUID/UUID generator on the given platform and has a +crossguid: generic class for parsing, stringifying, and comparing IDs. The guid +crossguid: generation technique is determined by your platform. crossguid: crossguid: Homepage: https://github.com/graeme-hill/crossguid crossguid: crossguid: crossguid: -crossguid: |