aboutsummaryrefslogtreecommitdiff
path: root/development/pkgconf
diff options
context:
space:
mode:
authororbea <orbea@riseup.net>2020-09-29 15:48:42 -0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-10-03 09:01:56 +0700
commite59d26bdcb702af8403384a0440565aca35cecf3 (patch)
tree40854a4269c75151ced9cba5d9c9e0e2fed7b109 /development/pkgconf
parent70750288ced020fb758fc64c2903d233400242e6 (diff)
development/pkgconf: Use personality files and add symlink.
Signed-off-by: orbea <orbea@riseup.net> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/pkgconf')
-rw-r--r--development/pkgconf/pkgconf.SlackBuild11
-rw-r--r--development/pkgconf/platform-pkg-config.in18
2 files changed, 13 insertions, 16 deletions
diff --git a/development/pkgconf/pkgconf.SlackBuild b/development/pkgconf/pkgconf.SlackBuild
index fe84ef08db75..4f34013b2a85 100644
--- a/development/pkgconf/pkgconf.SlackBuild
+++ b/development/pkgconf/pkgconf.SlackBuild
@@ -24,7 +24,7 @@
PRGNAM=pkgconf
VERSION=${VERSION:-1.7.3}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -89,6 +89,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 +103,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 +118,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
diff --git a/development/pkgconf/platform-pkg-config.in b/development/pkgconf/platform-pkg-config.in
index 1cc5917d5e9d..ffb18eb38a34 100644
--- a/development/pkgconf/platform-pkg-config.in
+++ b/development/pkgconf/platform-pkg-config.in
@@ -1,14 +1,8 @@
-#!/bin/sh
-
-# Simple wrapper to tell pkgconf to behave as a platform-specific version of pkg-config
+# pkgconf personality to behave as a platform-specific version of pkg-config
# Platform: @TARGET_PLATFORM@
-PKG_CONFIG_LIBDIR="${PKG_CONFIG_LIBDIR:-@PKGCONF_LIBDIRS@}"
-PKG_CONFIG_SYSTEM_LIBRARY_PATH="${PKG_CONFIG_SYSTEM_LIBRARY_PATH:-@PKGCONF_SYSLIBDIR@}"
-PKG_CONFIG_SYSTEM_INCLUDE_PATH="${PKG_CONFIG_SYSTEM_INCLUDE_PATH:-@PKGCONF_SYSINCDIR@}"
-
-export PKG_CONFIG_LIBDIR
-export PKG_CONFIG_SYSTEM_LIBRARY_PATH
-export PKG_CONFIG_SYSTEM_INCLUDE_PATH
-
-exec pkgconf "$@"
+Triplet: @TARGET_PLATFORM@
+SysrootDir: /
+DefaultSearchPaths: @PKGCONF_LIBDIRS@
+SystemIncludePaths: @PKGCONF_SYSINCDIR@
+SystemLibraryPaths: @PKGCONF_SYSLIBDIR@