aboutsummaryrefslogtreecommitdiff
path: root/development/pkgconf/pkgconf.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/pkgconf/pkgconf.SlackBuild')
-rw-r--r--development/pkgconf/pkgconf.SlackBuild11
1 files changed, 7 insertions, 4 deletions
diff --git a/development/pkgconf/pkgconf.SlackBuild b/development/pkgconf/pkgconf.SlackBuild
index fe84ef08db750..4f34013b2a851 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