shrub/nix/nixcrpkgs/pkgs/libusbp/builder.sh
benjamin-tlon edd57d380d
Finish cc-release cross-compilation. (#1202)
- Fixes the IPC bug
- Fixes the terminfo bug
- Moves the OSX SDK out of our nixcrpkgs fork.
- Vendor nixcrpkgs instead of having it be a submodule.
2019-04-23 19:50:38 -07:00

24 lines
340 B
Bash

source $setup
tar -xf $src
mv libusbp-* libusbp
mkdir build
cd build
cmake-cross ../libusbp \
-DCMAKE_INSTALL_PREFIX=$out \
-DBUILD_SHARED_LIBS=false
make
make install
if [ -d $out/bin ]; then
find $out/bin -type f -exec $host-strip {} +
fi
if [ -n "$libudev" ]; then
ln -s $libudev/lib/pkgconfig/*.pc $out/lib/pkgconfig/
fi