source $setup tar -xf $src mv libXext-* xext mkdir build cd build PKG_CONFIG=pkg-config-cross \ ../xext/configure --prefix=$out $configure_flags make make install sed -i 's/Requires.private/Requires/' $out/lib/pkgconfig/*.pc ln -sf $xextproto/lib/pkgconfig/*.pc $out/lib/pkgconfig/ ln -sf $libx11/lib/pkgconfig/*.pc $out/lib/pkgconfig/