-a3270bab3f4b69b7dc6dbdacbcae9745 pkg-config-0.25.tar.gz
-7a32cc234bef150b20b2011139f2e24c pkg-config-0.25_ANSII_libraries.patch
-e5c41ba63f2809c0e432fe9527568b85 pkg-config.diff
+5392b4e3372879c5bf856173b418d6a2 pkg-config-0.27.1.tar.gz
# Depends on:
name=pkg-config
-version=0.25
-release=2
-source=(http://$name.freedesktop.org/releases/$name-$version.tar.gz
- $name.diff
- $name-${version}_ANSII_libraries.patch)
+version=0.27.1
+release=1
+source=(http://$name.freedesktop.org/releases/$name-$version.tar.gz)
build() {
cd $name-$version
- patch -p1 -i $SRC/$name.diff
- patch -p1 -i $SRC/$name-${version}_ANSII_libraries.patch
+ cat > config.cache << EOF
+glib_cv_stack_grows=no
+glib_cv_uscore=no
+ac_cv_func_posix_getgrgid_r=yes
+ac_cv_func_posix_getpwuid_r=yes
+EOF
./configure --build=$CHOST \
--host=$CTARGET \
--prefix=/usr \
- --mandir=/usr/man
+ --mandir=/usr/man \
+ --with-internal-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,}
+ rm -r $PKG/usr/share/doc
}