2017-01-06 00:59:23 +01:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://termux.com/add-on-api.html
|
2015-06-13 01:03:31 +02:00
|
|
|
TERMUX_PKG_DESCRIPTION="Termux API commands"
|
2017-01-06 00:59:23 +01:00
|
|
|
TERMUX_PKG_VERSION=0.21
|
2015-06-13 01:03:31 +02:00
|
|
|
|
|
|
|
termux_step_make_install () {
|
2016-09-04 17:08:10 +02:00
|
|
|
mkdir -p $TERMUX_PREFIX/bin
|
2015-08-14 21:27:47 +02:00
|
|
|
local TERMUX_API_BINARY=$TERMUX_PREFIX/libexec/termux-api
|
2016-09-04 17:08:10 +02:00
|
|
|
|
2015-08-14 21:27:47 +02:00
|
|
|
cd $TERMUX_PKG_BUILDER_DIR
|
2016-09-04 17:08:10 +02:00
|
|
|
for file in `ls termux-* | grep -v termux-api.c`; do
|
2015-08-14 21:27:47 +02:00
|
|
|
sed "s|@TERMUX_API@|$TERMUX_API_BINARY|" $file > $TERMUX_PREFIX/bin/$file
|
|
|
|
chmod +x $TERMUX_PREFIX/bin/$file
|
2016-09-04 17:08:10 +02:00
|
|
|
done
|
|
|
|
|
|
|
|
$CC $CFLAGS -std=c11 -Wall -Wextra -pedantic -Werror $LDFLAGS termux-api.c -o $TERMUX_API_BINARY
|
2015-06-13 01:03:31 +02:00
|
|
|
}
|