shrub/nix/nixcrpkgs/pkgs/readline/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

33 lines
554 B
Bash

source $setup
# This is from the mingw-w64-readline AUR arch package.
export bash_cv_wcwidth_broken=no
tar -xf $src
cd readline-$version
for patch in $patches_p2; do
echo applying patch $patch
patch -p2 -i $patch
done
for patch in $patches; do
echo applying patch $patch
patch -p1 -i $patch
done
cd ..
mkdir build
cd build
../readline-$version/configure \
--prefix=$out --host=$host \
--enable-static --disable-shared \
--with-curses=$curses
make
make install
mkdir $out/license
cp ../readline-$version/COPYING $out/license/LICENSE