1.37. tmp libcap-2.31
This package is not added to temporary system at stage1 in original LFS.
We add it for another essential build tools.
#!/bin/sh # Copyright © 1999-2020 Gerard Beekmans # Copyright © 2017-2020 Random Crew # Distributed under the terms of MIT License.
Configuration
src_config()
{
sed -i '/install.*STA...LIBNAME/d' libcap/Makefile
}
Compilation
src_compile()
{
make ${MAKEOPTS} lib=lib
}
Installation
src_install()
{
make ${MAKEOPTS} lib=lib prefix=${PREFIX} DESTDIR=${D} install
chmod 755 ${D}/${PREFIX}/lib/libcap.so.2.31
}
Unit testing
src_check()
{
make test
}
Links