termux-packages/packages/libvterm/build.sh

20 lines
745 B
Bash
Raw Normal View History

2015-06-13 01:03:31 +02:00
TERMUX_PKG_HOMEPAGE=http://libvterm.sourceforge.net/
TERMUX_PKG_DESCRIPTION="Terminal emulator library"
2016-01-31 15:25:09 +01:00
# libvterm does not do releases, take a specific commit for now:
2016-12-23 09:20:45 +01:00
TERMUX_PKG_VERSION=16.12.18
_COMMIT=224b8dcde1c9640c29a34aa60c0f0d56ad298449
TERMUX_PKG_SRCURL=https://github.com/neovim/libvterm/archive/$_COMMIT.zip
TERMUX_PKG_SHA256=8b8ce8c26bc63e8b7934581d3ea5a3deaa3571009d4eaa777444f333951eeac5
TERMUX_PKG_FOLDERNAME=libvterm-$_COMMIT
2015-06-13 01:03:31 +02:00
TERMUX_PKG_BUILD_IN_SRC=yes
termux_step_make () {
make src/encoding/DECdrawing.inc src/encoding/uk.inc
}
termux_step_make_install () {
cd $TERMUX_PKG_SRCDIR/src
$CC -std=c99 -shared -fPIC $LDFLAGS -o $TERMUX_PREFIX/lib/libvterm.so *.c -I../include -I.
cp ../include/*.h $TERMUX_PREFIX/include/
}