From 7146524f273ad7add0d5b533156d35d07896ed8c Mon Sep 17 00:00:00 2001 From: Patrick J Volkerding Date: Sat, 1 Aug 2020 19:08:49 +0000 Subject: Sat Aug 1 19:08:49 UTC 2020 a/cryptsetup-2.3.3-x86_64-2.txz: Rebuilt. Recompiled against json-c-0.15_20200726. l/imagemagick-7.0.10_25-x86_64-1.txz: Upgraded. l/json-c-0.15_20200726-x86_64-1.txz: Upgraded. Shared library .so-version bump. l/urwid-1.0.3-x86_64-5.txz: Removed. This is an ancient version that was only used by wicd. n/bind-9.16.5-x86_64-2.txz: Rebuilt. Recompiled against json-c-0.15_20200726. x/libmypaint-1.6.1-x86_64-2.txz: Rebuilt. Recompiled against json-c-0.15_20200726. xap/gimp-2.10.20-x86_64-2.txz: Rebuilt. Recompiled against json-c-0.15_20200726. extra/wicd/wicd-1.7.4-x86_64-3.txz: Removed. This is unmaintained, possibly insecure, and doesn't work with Python versions newer than 2.7.18. NetworkManager is a better choice these days. --- source/l/json-c/json-c.SlackBuild | 38 ++++++++++++++++++-------------------- 1 file changed, 18 insertions(+), 20 deletions(-) (limited to 'source/l/json-c') diff --git a/source/l/json-c/json-c.SlackBuild b/source/l/json-c/json-c.SlackBuild index 632200653..06e548e24 100755 --- a/source/l/json-c/json-c.SlackBuild +++ b/source/l/json-c/json-c.SlackBuild @@ -3,7 +3,7 @@ # Slackware build script for json-c # Copyright 2015 Robby Workman, Tuscaloosa, Alabama, USA -# Copyright 2018 Patrick J. Volkerding, Sebeka, Minnesota, USA +# Copyright 2018, 2020 Patrick J. Volkerding, Sebeka, Minnesota, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -71,9 +71,9 @@ fi rm -rf $PKG mkdir -p $TMP $PKG cd $TMP -rm -rf $PKGNAM-$VERSION +rm -rf $PKGNAME-$PKGNAM-$VERSION tar xvf $CWD/$PKGNAM-$VERSION.tar.?z || exit 1 -cd $PKGNAM-$VERSION || exit 1 +cd $PKGNAM-$PKGNAM-$VERSION || exit 1 chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \ @@ -81,23 +81,21 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \+ -CFLAGS="$SLKCFLAGS" \ -CXXFLAGS="$SLKCFLAGS" \ -./configure \ - --prefix=/usr \ - --libdir=/usr/lib${LIBDIRSUFFIX} \ - --sysconfdir=/etc \ - --localstatedir=/var \ - --disable-static \ - --mandir=/usr/man \ - --docdir=/usr/doc/$PKGNAM-$VERSION \ - --build=$ARCH-slackware-linux || exit 1 - -make $NUMJOBS || make || exit 1 -make install DESTDIR=$PKG || exit 1 - -# Don't ship .la files: -rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la +# Configure, build, and install: +mkdir cmake-build +cd cmake-build + cmake \ + -DCMAKE_C_FLAGS="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS="$SLKCFLAGS" \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DLIB_SUFFIX="$LIBDIRSUFFIX" \ + -DDOC_INSTALL_DIR="doc" \ + -DMAN_INSTALL_DIR=/usr/man \ + -DBUILD_STATIC_LIBS=OFF \ + .. || exit 1 + make $NUMJOBS || make || exit 1 + make install DESTDIR=$PKG || exit 1 +cd .. find $PKG | xargs file | grep -e "executable" -e "shared object" \ | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null -- cgit v1.2.3