mirror of
https://github.com/YellowJacketLinux/lfs-buildscripts.git
synced 2025-01-23 22:42:28 +08:00
32 lines
530 B
Bash
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
|
|
|