# Depends on:
name=pkg-config
-version=0.23
-release=1
-source=(http://$name.freedesktop.org/releases/$name-$version.tar.gz \
+version=0.25
+release=2
+source=(http://$name.freedesktop.org/releases/$name-$version.tar.gz
+ $name.diff
$name-${version}_ANSII_libraries.patch)
build() {
cd $name-$version
+ patch -p1 -i $SRC/$name.diff
patch -p1 -i $SRC/$name-${version}_ANSII_libraries.patch
-# echo "glib_cv_has__inline=yes" > config.cache
-# echo "glib_cv_hasinline=yes" >> config.cache
-
- #export GLIB_CFLAGS="-I$CLFS/usr/include/glib-2.0 -I$CLFS/usr/lib/glib-2.0/include"
- #export GLIB_LIBS="-L$CLFS/usr/lib -lglib-2.0 -liconv -lintl"
-
./configure --build=$CHOST \
--host=$CTARGET \
--prefix=/usr \
--mandir=/usr/man
-#--with-installed-glib
-# --cache-file=config.cache
+
make
make DESTDIR=$PKG install
+
+ rm $PKG/usr/share/doc/pkg-config/pkg-config-guide.html
+ rmdir $PKG/usr/share/doc/{pkg-config,}
}