lfs-buildscripts/CH8Build/CH08.17-pkgconf.sh

41 lines
676 B
Bash
Raw Permalink Normal View History

2024-10-04 19:58:25 +08:00
#!/bin/bash
source versions.sh
GLSOURCES="/sources"
2024-10-09 03:11:06 +08:00
pushd ${GLSOURCES} > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
2024-10-04 19:58:25 +08:00
[ -d pkgconf-${pkgconf_version} ] && rm -rf pkgconf-${pkgconf_version}
tar -Jxf ${pkgconf_tarball}
cd pkgconf-${pkgconf_version}
./configure --prefix=/usr \
--disable-static \
--docdir=/usr/share/doc/pkgconf-${pkgconf_version}
make
if [ $? -ne 0 ]; then
myfail "Failed building pkgconf"
fi
make install
if [ $? -ne 0 ]; then
myfail "Failed installing pkgconf"
fi
ln -sv pkgconf /usr/bin/pkg-config
ln -sv pkgconf.1 /usr/share/man/man1/pkg-config.1
2024-10-08 12:28:55 +08:00
popd
# cleanup
pushd $GLSOURCES
rm -rf pkgconf-${pkgconf_version}
popd