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"
|
2020-12-20 14:16:34 +01:00
|
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
2019-05-05 20:01:42 +02:00
|
|
|
TERMUX_PKG_VERSION=0.22
|
2021-11-08 21:21:53 +01:00
|
|
|
TERMUX_PKG_REVISION=3
|
2015-06-13 01:03:31 +02:00
|
|
|
TERMUX_PKG_SRCURL=http://www.leonerd.org.uk/code/libtermkey/libtermkey-${TERMUX_PKG_VERSION}.tar.gz
|
2020-01-13 02:00:07 +01:00
|
|
|
TERMUX_PKG_SHA256=6945bd3c4aaa83da83d80a045c5563da4edd7d0374c62c0d35aec09eb3014600
|
2015-06-13 01:03:31 +02:00
|
|
|
TERMUX_PKG_DEPENDS="libunibilium"
|
2019-07-20 10:42:33 +02:00
|
|
|
TERMUX_PKG_BREAKS="libtermkey-dev"
|
|
|
|
TERMUX_PKG_REPLACES="libtermkey-dev"
|
2019-08-12 17:28:41 +02:00
|
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
2015-06-13 01:03:31 +02:00
|
|
|
|
2021-11-08 21:21:53 +01:00
|
|
|
termux_step_pre_configure() {
|
|
|
|
CFLAGS+=" -std=c99 -DHAVE_UNIBILIUM=1"
|
2015-06-13 01:03:31 +02:00
|
|
|
}
|
|
|
|
|
2021-11-08 21:21:53 +01:00
|
|
|
termux_step_make() {
|
2015-06-13 01:03:31 +02:00
|
|
|
$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
|
|
|
|
|
2021-11-08 21:21:53 +01:00
|
|
|
$CC -shared -fPIC $LDFLAGS -o libtermkey.so \
|
|
|
|
termkey.o driver-csi.o driver-ti.o -lunibilium
|
|
|
|
}
|
2015-06-13 01:03:31 +02:00
|
|
|
|
2021-11-08 21:21:53 +01:00
|
|
|
termux_step_make_install() {
|
|
|
|
install -Dm600 -t $TERMUX_PREFIX/lib libtermkey.so
|
2015-06-13 01:03:31 +02:00
|
|
|
chmod u+w termkey.h
|
2021-11-08 21:21:53 +01:00
|
|
|
install -Dm600 termkey.h $TERMUX_PREFIX/include/
|
2019-05-05 20:01:42 +02:00
|
|
|
LIBDIR=$TERMUX_PREFIX/lib INCDIR=$TERMUX_PREFIX/include VERSION=$TERMUX_PKG_VERSION sh termkey.pc.sh > \
|
2021-11-08 21:21:53 +01:00
|
|
|
$PKG_CONFIG_LIBDIR/termkey.pc
|
2015-06-13 01:03:31 +02:00
|
|
|
}
|