1
0
mirror of https://github.com/krglaws/MyLFS.git synced 2025-08-10 03:12:53 +00:00
Files
MyLFS-big_bash_script/phase4/libcap.sh
2022-03-26 17:55:10 -04:00

29 lines
417 B
Bash

#!/usr/bin/env bash
# Libcap Stage 6
# ~~~~~~~~~~
set -e
cd /sources
eval "$(grep LIBCAP $PACKAGE_LIST)"
PKG_LIBCAP=$(basename $PKG_LIBCAP)
tar -xf $PKG_LIBCAP
cd ${PKG_LIBCAP%.tar*}
sed -i '/install -m.*STA/d' libcap/Makefile
make prefix=/usr lib=lib
if $RUN_TESTS
then
set +e
make test &> $TESTLOG_DIR/libcap.log
set -e
fi
make prefix=/usr lib=lib install
cd /sources
rm -rf ${PKG_LIBCAP%.tar*}