2015-06-13 01:03:31 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=http://www.leonerd.org.uk/code/libtermkey/
|
|
|
|
TERMUX_PKG_DESCRIPTION="Library for processing of keyboard entry for terminal-based programs"
|
2019-01-21 13:53:58 +01:00
|
|
|
TERMUX_PKG_LICENSE="MIT"
|
2017-04-14 23:47:19 +02:00
|
|
|
TERMUX_PKG_VERSION=0.20
|
2018-02-09 15:55:11 +01:00
|
|
|
TERMUX_PKG_REVISION=1
|
2015-06-13 01:03:31 +02:00
|
|
|
TERMUX_PKG_SRCURL=http://www.leonerd.org.uk/code/libtermkey/libtermkey-${TERMUX_PKG_VERSION}.tar.gz
|
2017-04-14 23:47:19 +02:00
|
|
|
TERMUX_PKG_SHA256=6c0d87c94ab9915e76ecd313baec08dedf3bd56de83743d9aa923a081935d2f5
|
2015-06-13 01:03:31 +02:00
|
|
|
TERMUX_PKG_DEPENDS="libunibilium"
|
|
|
|
TERMUX_PKG_BUILD_IN_SRC=yes
|
|
|
|
|
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+=" -std=c99 -DHAVE_UNIBILIUM=1"
|
|
|
|
$CC $CFLAGS $CPPFLAGS -c -fPIC termkey.c -o termkey.o
|
|
|
|
$CC $CFLAGS $CPPFLAGS -c -fPIC driver-csi.c -o driver-csi.o
|
|
|
|
$CC $CFLAGS $CPPFLAGS -c -fPIC driver-ti.c -o driver-ti.o
|
|
|
|
|
|
|
|
$CC -shared -fPIC $LDFLAGS -o $TERMUX_PREFIX/lib/libtermkey.so termkey.o driver-csi.o driver-ti.o -lunibilium
|
|
|
|
|
|
|
|
chmod u+w termkey.h
|
|
|
|
cp termkey.h $TERMUX_PREFIX/include/
|
|
|
|
cat termkey.pc.in | sed "s|@INCDIR@|$TERMUX_PREFIX/include|" | \
|
2019-02-09 12:16:54 +01:00
|
|
|
sed "s|@LIBDIR@|$TERMUX_PREFIX/lib|" > \
|
2015-06-13 01:03:31 +02:00
|
|
|
$PKG_CONFIG_LIBDIR/termkey.pc
|
|
|
|
}
|