mirror of
https://github.com/ilyakooo0/urbit.git
synced 2025-01-05 22:03:50 +03:00
29 lines
471 B
Bash
29 lines
471 B
Bash
|
source $setup
|
||
|
|
||
|
tar -xf $src
|
||
|
mv libxcb-* libxcb
|
||
|
|
||
|
cd libxcb
|
||
|
for patch in $patches; do
|
||
|
echo applying patch $patch
|
||
|
patch -p1 -i $patch
|
||
|
done
|
||
|
cd ..
|
||
|
|
||
|
mkdir build
|
||
|
cd build
|
||
|
|
||
|
PKG_CONFIG=pkg-config-cross \
|
||
|
../libxcb/configure --prefix=$out $configure_flags
|
||
|
|
||
|
make
|
||
|
|
||
|
make install
|
||
|
|
||
|
# Make static linking work.
|
||
|
sed -i 's/Requires.private/Requires/' $out/lib/pkgconfig/*.pc
|
||
|
sed -i 's/Libs.private/Libs/' $out/lib/pkgconfig/*.pc
|
||
|
|
||
|
ln -sf $libxau/lib/pkgconfig/*.pc $out/lib/pkgconfig/
|
||
|
|