Initial push
[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=http://ftp.gnu.org/pub/gnu/libiconv/libiconv-${TERMUX_PKG_VERSION}.tar.gz
5 # Only install the binary, not the library since we use libandroid-support for iconv functions:
6 TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--enable-static --disable-shared"
7
8 termux_step_make_install () {
9 make -C lib install # this installs libiconv.{a,la} which the below install task needs:
10 make -C src install
11 rm $TERMUX_PREFIX/lib/libiconv.{a,la}
12 # .. and the man page:
13 cp $TERMUX_PKG_SRCDIR/man/iconv.1 $TERMUX_PREFIX/share/man/man1/
14 }