mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-02-11 04:10:52 +00:00
- Installed files change: ```diff --- libtermkey-old.txt 2026-01-25 04:21:25.933458391 -0600 +++ libtermkey-new.txt 2026-01-25 04:24:01.881458280 -0600 @@ -8,16 +8,9 @@ /data/data/com.termux/files/usr/include/termkey.h /data/data/com.termux/files/usr/lib /data/data/com.termux/files/usr/lib/libtermkey.so -/data/data/com.termux/files/usr/lib/pkgconfig: -/data/data/com.termux/files/usr/lib/pkgconfig:/data -/data/data/com.termux/files/usr/lib/pkgconfig:/data/data -/data/data/com.termux/files/usr/lib/pkgconfig:/data/data/com.termux -/data/data/com.termux/files/usr/lib/pkgconfig:/data/data/com.termux/files -/data/data/com.termux/files/usr/lib/pkgconfig:/data/data/com.termux/files/usr -/data/data/com.termux/files/usr/lib/pkgconfig:/data/data/com.termux/files/usr/share -/data/data/com.termux/files/usr/lib/pkgconfig:/data/data/com.termux/files/usr/share/pkgconfig -/data/data/com.termux/files/usr/lib/pkgconfig:/data/data/com.termux/files/usr/share/pkgconfig/termkey.pc /data/data/com.termux/files/usr/share /data/data/com.termux/files/usr/share/doc /data/data/com.termux/files/usr/share/doc/libtermkey /data/data/com.termux/files/usr/share/doc/libtermkey/copyright +/data/data/com.termux/files/usr/share/pkgconfig +/data/data/com.termux/files/usr/share/pkgconfig/termkey.pc ```
35 lines
1.3 KiB
Bash
35 lines
1.3 KiB
Bash
TERMUX_PKG_HOMEPAGE=http://www.leonerd.org.uk/code/libtermkey/
|
|
TERMUX_PKG_DESCRIPTION="Library for processing of keyboard entry for terminal-based programs"
|
|
TERMUX_PKG_LICENSE="MIT"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
TERMUX_PKG_VERSION=0.22
|
|
TERMUX_PKG_REVISION=5
|
|
TERMUX_PKG_SRCURL=http://www.leonerd.org.uk/code/libtermkey/libtermkey-${TERMUX_PKG_VERSION}.tar.gz
|
|
TERMUX_PKG_SHA256=6945bd3c4aaa83da83d80a045c5563da4edd7d0374c62c0d35aec09eb3014600
|
|
TERMUX_PKG_DEPENDS="libunibilium"
|
|
TERMUX_PKG_BREAKS="libtermkey-dev"
|
|
TERMUX_PKG_REPLACES="libtermkey-dev"
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
|
|
termux_step_pre_configure() {
|
|
CFLAGS+=" -std=c99 -DHAVE_UNIBILIUM=1"
|
|
}
|
|
|
|
termux_step_make() {
|
|
$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 libtermkey.so \
|
|
termkey.o driver-csi.o driver-ti.o -lunibilium
|
|
}
|
|
|
|
termux_step_make_install() {
|
|
install -Dm600 -t $TERMUX_PREFIX/lib libtermkey.so
|
|
chmod u+w termkey.h
|
|
install -Dm600 termkey.h $TERMUX_PREFIX/include/
|
|
mkdir -p "$TERMUX_PREFIX/share/pkgconfig"
|
|
LIBDIR=$TERMUX_PREFIX/lib INCDIR=$TERMUX_PREFIX/include VERSION=$TERMUX_PKG_VERSION sh termkey.pc.sh > \
|
|
"$TERMUX_PREFIX/share/pkgconfig/termkey.pc"
|
|
}
|