minijail: install .pc files and scoped_minijail.h

This matches the behaviour of the Chromium OS ebuild for this package:
cd6d6815b1/chromeos-base/minijail/minijail-10-r38.ebuild (47)
This commit is contained in:
Alyssa Ross 2019-12-02 16:43:40 +00:00
parent a8508f7266
commit fa0fe1d8c9
No known key found for this signature in database
GPG key ID: F9DBED4859B271C0

View file

@ -20,13 +20,20 @@ stdenv.mkDerivation rec {
sed -i '/#include <asm\/siginfo.h>/ d' signal_handler.c
'';
postPatch = ''
patchShebangs platform2_preinstall.sh
'';
postBuild = ''
./platform2_preinstall.sh ${version} $out/include/chromeos
'';
installPhase = ''
mkdir -p $out/lib
mkdir -p $out/lib/pkgconfig $out/include/chromeos $out/bin
cp -v *.so $out/lib
mkdir -p $out/include
cp -v libminijail.h $out/include
mkdir -p $out/bin
cp minijail0 $out/bin
cp -v *.pc $out/lib/pkgconfig
cp -v libminijail.h scoped_minijail.h $out/include/chromeos
cp -v minijail0 $out/bin
'';
meta = {