distorted-utils: Currently disabled.
[termux-packages] / packages / libandroid-support / build.sh
1 TERMUX_PKG_HOMEPAGE=https://github.com/termux/libandroid-support
2 TERMUX_PKG_DESCRIPTION="Library extending the Android C library (Bionic) for additional multibyte, locale and math support"
3 TERMUX_PKG_VERSION=22
4 TERMUX_PKG_SHA256=667f20d0821a6305c50c667363486d546b293e846f31d02f559947d50121f51e
5 TERMUX_PKG_SRCURL=https://github.com/termux/libandroid-support/archive/v${TERMUX_PKG_VERSION}.tar.gz
6 TERMUX_PKG_BUILD_IN_SRC=yes
7 TERMUX_PKG_ESSENTIAL=yes
8
9 termux_step_make_install () {
10 _C_FILES="src/musl-*/*.c"
11 $CC $CFLAGS -std=c99 -DNULL=0 $CPPFLAGS $LDFLAGS \
12 -Iinclude \
13 $_C_FILES \
14 -shared -fpic \
15 -o libandroid-support.so
16
17 cp libandroid-support.so $TERMUX_PREFIX/lib/
18
19 (cd $TERMUX_PREFIX/lib; ln -f -s libandroid-support.so libiconv.so; )
20
21 rm -Rf $TERMUX_PREFIX/include/libandroid-support
22 mkdir -p $TERMUX_PREFIX/include/libandroid-support
23 cp -Rf include/* $TERMUX_PREFIX/include/libandroid-support/
24
25 (cd $TERMUX_PREFIX/include; ln -f -s libandroid-support/iconv.h iconv.h)
26 }