2020-03-19 20:09:18 +01:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://github.com/neovim/unibilium
|
2015-06-13 01:03:31 +02:00
|
|
|
TERMUX_PKG_DESCRIPTION="Terminfo parsing library"
|
2019-01-21 13:53:58 +01:00
|
|
|
TERMUX_PKG_LICENSE="LGPL-3.0"
|
2020-12-20 14:16:34 +01:00
|
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
2021-05-05 13:53:52 +02:00
|
|
|
TERMUX_PKG_VERSION=2.1.1
|
2020-03-19 20:09:18 +01:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/neovim/unibilium/archive/v${TERMUX_PKG_VERSION}.tar.gz
|
2021-05-05 13:53:52 +02:00
|
|
|
TERMUX_PKG_SHA256=6f0ee21c8605340cfbb458cbd195b4d074e6d16dd0c0e12f2627ca773f3cabf1
|
2021-10-04 12:43:31 +02:00
|
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
2019-07-20 10:42:33 +02:00
|
|
|
TERMUX_PKG_BREAKS="libunibilium-dev"
|
|
|
|
TERMUX_PKG_REPLACES="libunibilium-dev"
|
2019-08-12 17:28:41 +02:00
|
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
2015-06-13 01:03:31 +02:00
|
|
|
|
2020-03-19 20:15:33 +01:00
|
|
|
termux_step_pre_configure() {
|
|
|
|
rm -f CMakeLists.txt
|
|
|
|
}
|
|
|
|
|
2019-02-08 10:37:29 +01:00
|
|
|
termux_step_make() {
|
2015-06-13 01:03:31 +02:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
2019-02-08 10:37:29 +01:00
|
|
|
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/
|
2019-05-05 21:07:06 +02:00
|
|
|
|
|
|
|
mkdir -p $PKG_CONFIG_LIBDIR
|
|
|
|
sed "s|@VERSION@|$TERMUX_PKG_VERSION|" unibilium.pc.in | \
|
|
|
|
sed "s|@INCDIR@|$TERMUX_PREFIX/include|" | \
|
|
|
|
sed "s|@LIBDIR@|$TERMUX_PREFIX/lib|" > \
|
|
|
|
$PKG_CONFIG_LIBDIR/unibilium.pc
|
2015-06-13 01:03:31 +02:00
|
|
|
}
|