termux-packages/packages/libunibilium/build.sh

21 lines
769 B
Bash
Raw Normal View History

2015-06-13 01:03:31 +02:00
TERMUX_PKG_HOMEPAGE=https://github.com/mauke/unibilium
TERMUX_PKG_DESCRIPTION="Terminfo parsing library"
2019-01-21 13:53:58 +01:00
TERMUX_PKG_LICENSE="LGPL-3.0"
TERMUX_PKG_VERSION=2.0.0
TERMUX_PKG_SHA256=78997d38d4c8177c60d3d0c1aa8c53fd0806eb21825b7b335b1768d7116bc1c1
2015-06-13 01:03:31 +02:00
TERMUX_PKG_SRCURL=https://github.com/mauke/unibilium/archive/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_BUILD_IN_SRC=yes
termux_step_make() {
2015-06-13 01:03:31 +02:00
return
}
termux_step_make_install() {
2015-06-13 01:03:31 +02:00
CFLAGS+=" -DTERMINFO_DIRS=\"$TERMUX_PREFIX/share/terminfo/\""
$CC $CFLAGS -c -fPIC unibilium.c -o unibilium.o
$CC $CFLAGS -c -fPIC uninames.c -o uninames.o
$CC $CFLAGS -c -fPIC uniutil.c -o uniutil.o
$CC -shared -fPIC $LDFLAGS -o $TERMUX_PREFIX/lib/libunibilium.so unibilium.o uninames.o uniutil.o
cp unibilium.h $TERMUX_PREFIX/include/
}