#!/bin/sh
# Copyright © 1999-2022 Gerard Beekmans
# Copyright © 2017-2022 Random Crew
# Distributed under the terms of MIT License.
src_config()
{
sed -i '/install -m.*STA/d' libcap/Makefile
}
src_compile()
{
make ${MAKEOPTS} lib=lib prefix=${PREFIX}
}
src_install()
{
make ${MAKEOPTS} lib=lib prefix=${PREFIX} DESTDIR=${D} install
chmod 755 \
${D}${PREFIX}/lib/libcap.so.${PV} \
${D}${PREFIX}/lib/libpsx.so.${PV}
}
src_check()
{
make test
}
- libcap.build
- meta.txt
- text
- url.lfs: https://linuxfromscratch.org/lfs/view/11.0/chapter08/libcap.html