mirror of
https://github.com/YellowJacketLinux/lfs-buildscripts.git
synced 2025-01-23 22:42:28 +08:00
30 lines
482 B
Bash
30 lines
482 B
Bash
#!/bin/bash
|
|
|
|
source versions.sh
|
|
|
|
GLSOURCES="/sources"
|
|
|
|
pushd $GLSOURCES > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
|
|
|
|
[ -d file-${file_version} ] && rm -rf file-${file_version}
|
|
|
|
tar -zxf ${file_tarball}
|
|
|
|
cd file-${file_version}
|
|
|
|
./configure --prefix=/usr
|
|
|
|
make
|
|
if [ $? -ne 0 ]; then
|
|
myfail "Failed building file"
|
|
fi
|
|
|
|
echo "running file make check"
|
|
make check > ${GLSOURCES}/file.check 2>&1
|
|
|
|
make install
|
|
if [ $? -ne 0 ]; then
|
|
myfail "Failed installing file"
|
|
fi
|
|
|