lfs-buildscripts/CH8Build/CH08.22-attr.sh
2024-10-08 12:43:22 -07:00

44 lines
697 B
Bash

#!/bin/bash
source versions.sh
GLSOURCES="/sources"
pushd ${GLSOURCES} > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
[ -d attr-${attr_version} ] && rm -rf attr-${attr_version}
tar -zxf ${attr_tarball}
cd attr-${attr_version}
./configure --prefix=/usr \
--disable-static \
--sysconfdir=/etc \
--docdir=/usr/share/doc/attr-${attr_version}
make
if [ $? -ne 0 ]; then
myfail "Failed building attr"
fi
if [ ! -f ${GLSOURCES}/SKIPTESTS ]; then
echo "running attr make check"
make check > ${GLSOURCES}/attr.check.log 2>&1
fi
make install
if [ $? -ne 0 ]; then
myfail "Failed installing attr"
fi
popd
# cleanup
pushd $GLSOURCES
rm -rf attr-${attr_version}
popd