summaryrefslogtreecommitdiff
path: root/libraries/json-glib/json-glib.SlackBuild
diff options
context:
space:
mode:
authorErik Hanson <erik@slackbuilds.org>2010-12-27 09:26:03 -0600
committerNiels Horn <niels.horn@slackbuilds.org>2010-12-27 20:12:23 -0200
commit5df901adc406fcd6dcfce695288ad83323ef9769 (patch)
tree53eee7676da5b293180e89bf61a7121898f6ea37 /libraries/json-glib/json-glib.SlackBuild
parent10313896201210d3b5a4dd0da8051e835cb005f9 (diff)
downloadslackbuilds-5df901adc406fcd6dcfce695288ad83323ef9769.tar.gz
libraries/json-glib: Fix hard-coded pkgconfig file.
Signed-off-by: Erik Hanson <erik@slackbuilds.org>
Diffstat (limited to 'libraries/json-glib/json-glib.SlackBuild')
-rw-r--r--libraries/json-glib/json-glib.SlackBuild9
1 files changed, 6 insertions, 3 deletions
diff --git a/libraries/json-glib/json-glib.SlackBuild b/libraries/json-glib/json-glib.SlackBuild
index 9dcbd87001..ac13243e8d 100644
--- a/libraries/json-glib/json-glib.SlackBuild
+++ b/libraries/json-glib/json-glib.SlackBuild
@@ -24,15 +24,13 @@
PRGNAM=json-glib
VERSION=0.7.6
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
-# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@@ -80,6 +78,11 @@ CFLAGS="$SLKCFLAGS" \
make
make install-strip DESTDIR=$PKG
+# Fix the hard-coded pkgconfig file:
+if [ "$ARCH" = "x86_64" ]; then
+ sed -i "s#/lib#/lib64#" $PKG/usr/lib64/pkgconfig/json-glib-1.0.pc
+fi
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS COPYING ChangeLog INSTALL NEWS README \
$PKG/usr/doc/$PRGNAM-$VERSION