diff options
Diffstat (limited to 'development/pkgconf/pkgconf.SlackBuild')
-rw-r--r-- | development/pkgconf/pkgconf.SlackBuild | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/development/pkgconf/pkgconf.SlackBuild b/development/pkgconf/pkgconf.SlackBuild index 40f297c331..cbcd1c0e2d 100644 --- a/development/pkgconf/pkgconf.SlackBuild +++ b/development/pkgconf/pkgconf.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for pkgconf -# Copyright 2016-2019 Hunter Sezen California, USA +# Copyright 2016-2021 Hunter Sezen California, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=pkgconf -VERSION=${VERSION:-1.6.3} +VERSION=${VERSION:-1.7.4} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -69,12 +69,13 @@ 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 {} \; -[ "${DEBUG:=0}" != 0 ] && +[ "${DEBUG:=0}" = 0 ] || SLKCFLAGS="$(printf %s "$SLKCFLAGS" | sed 's/-O2/-O0 -g/')" autoreconf -fi CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ @@ -89,6 +90,7 @@ make make install DESTDIR=$PKG ( cd $PKG/usr/bin; ln -sf $PRGNAM pkg-config ) +( cd $PKG/usr/man/man1; ln -s $PRGNAM.1 pkg-config.1 ) if [ "$ARCH" = x86_64 ]; then if [ -f /usr/lib/libgcc_s.so ]; then @@ -102,7 +104,9 @@ fi platform=slackware-linux-gnu -# adapted from fedora +mkdir -p $PKG/usr/share/pkgconfig/personality.d + +# adapted from fedora and arch eval "set -- $arch" for i do case "$i" in @@ -115,8 +119,8 @@ for i do -e "s|@PKGCONF_SYSLIBDIR@|/usr/local/lib$libdir:/lib$libdir:/usr/lib$libdir|" \ -e "s|@PKGCONF_SYSINCDIR@|/usr/local/include:/usr/include|" \ < $CWD/platform-pkg-config.in \ - > $PKG/usr/bin/$i-$platform-pkg-config - chmod 0755 $PKG/usr/bin/$i-$platform-pkg-config + > $PKG/usr/share/pkgconfig/personality.d/$i-$platform.personality + ( cd $PKG/usr/bin; ln -s $PRGNAM $i-$platform-pkg-config ) done if [ "$DEBUG" = 0 ]; then |