lfs-buildscripts/CH8Build/CH08.36-gdbm.sh

43 lines
654 B
Bash
Raw Normal View History

2024-10-05 17:08:41 +08:00
#!/bin/bash
source versions.sh
GLSOURCES="/sources"
2024-10-09 09:50:04 +08:00
pushd ${GLSOURCES} > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
2024-10-05 17:08:41 +08:00
[ -d gdbm-${gdbm_version} ] && rm -rf gdbm-${gdbm_version}
tar -zxf ${gdbm_tarball}
cd gdbm-${gdbm_version}
./configure --prefix=/usr \
--disable-static \
--enable-libgdbm-compat
make
if [ $? -ne 0 ]; then
myfail "Failed building gdbm"
fi
2024-10-09 09:50:04 +08:00
if [ ! -f ${GLSOURCES}/SKIPTESTS ]; then
echo "running gdbm make check"
make check > ${GLSOURCES}/gdbm.check.log 2>&1
fi
2024-10-05 17:08:41 +08:00
make install
if [ $? -ne 0 ]; then
myfail "Failed installing gdbm"
fi
2024-10-08 14:25:15 +08:00
popd
# cleanup
pushd $GLSOURCES
rm -rf gdbm-${gdbm_version}
popd