depot/third_party/nixpkgs/pkgs/development/compilers/fpc/binary-builder-darwin.sh
Default email 0d9fc34957 Project import generated by Copybara.
GitOrigin-RevId: 5ed481943351e9fd354aeb557679624224de38d5
2023-01-20 11:41:00 +01:00

18 lines
340 B
Bash
Executable file

if [ -e .attrs.sh ]; then source .attrs.sh; fi
source $stdenv/setup
pkgdir=$(pwd)/pkg
deploydir=$(pwd)/deploy
undmg $src
mkdir $out
mkdir $pkgdir
mkdir $deploydir
pkg=*.mpkg/Contents/Packages/*.pkg
xar -xf $pkg -C $pkgdir
pushd $deploydir
cat $pkgdir/Payload | gunzip -dc | cpio -i
popd
echo $deploydir
cp -r $deploydir/usr/local/* $out