From 5df901adc406fcd6dcfce695288ad83323ef9769 Mon Sep 17 00:00:00 2001 From: Erik Hanson Date: Mon, 27 Dec 2010 09:26:03 -0600 Subject: libraries/json-glib: Fix hard-coded pkgconfig file. Signed-off-by: Erik Hanson --- libraries/json-glib/json-glib.SlackBuild | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'libraries/json-glib/json-glib.SlackBuild') 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 -- cgit v1.2.3