lfs-buildscripts/CH8Build/CH08.36-gdbm.sh
2024-10-05 02:08:41 -07:00

32 lines
530 B
Bash

#!/bin/bash
source versions.sh
GLSOURCES="/sources"
pushd $GLSOURCES > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
[ -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
echo "running gdbm make check"
make check > ${GLSOURCES}/gdbm.check 2>&1
make install
if [ $? -ne 0 ]; then
myfail "Failed installing gdbm"
fi