mirror of
https://github.com/urbit/shrub.git
synced 2024-12-23 02:41:35 +03:00
edd57d380d
- 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.
24 lines
340 B
Bash
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
|