12b397c28b515b1a5822c9066d2bc6f603144a2b
[termux-packages] / packages / iconv / build.sh
1 TERMUX_PKG_HOMEPAGE=https://www.gnu.org/software/libiconv/
2 TERMUX_PKG_DESCRIPTION="Utility converting between different character encodings"
3 TERMUX_PKG_VERSION=1.14
4 TERMUX_PKG_SRCURL=https://mirrors.kernel.org/gnu/libiconv/libiconv-${TERMUX_PKG_VERSION}.tar.gz
5 TERMUX_PKG_SHA256=72b24ded17d687193c3366d0ebe7cde1e6b18f0df8c55438ac95be39e8a30613
6 # Only install the binary, not the library since we use libandroid-support for iconv functions:
7 TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--enable-static --disable-shared"
8
9 termux_step_make_install () {
10 make -C lib install # this installs libiconv.{a,la} which the below install task needs:
11 make -C src install
12 rm $TERMUX_PREFIX/lib/libiconv.{a,la}
13 # .. and the man page:
14 cp $TERMUX_PKG_SRCDIR/man/iconv.1 $TERMUX_PREFIX/share/man/man1/
15 }