termux-packages/packages/stfl/build.sh

27 lines
982 B
Bash
Raw Normal View History

TERMUX_PKG_HOMEPAGE=http://www.clifford.at/stfl
TERMUX_PKG_DESCRIPTION="Structured Terminal Forms Language/Library"
2019-01-21 13:53:58 +01:00
TERMUX_PKG_LICENSE="GPL-3.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=0.24
TERMUX_PKG_REVISION=4
TERMUX_PKG_SRCURL=http://www.clifford.at/stfl/stfl-${TERMUX_PKG_VERSION}.tar.gz
2017-03-27 01:56:11 +02:00
TERMUX_PKG_SHA256=d4a7aa181a475aaf8a8914a8ccb2a7ff28919d4c8c0f8a061e17a0c36869c090
TERMUX_PKG_DEPENDS="libandroid-support, libiconv, ncurses"
TERMUX_PKG_BREAKS="stfl-dev"
TERMUX_PKG_REPLACES="stfl-dev"
TERMUX_PKG_BUILD_IN_SRC=true
termux_step_pre_configure(){
# mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h
sed -i 's/FOUND_RUBY = 1/FOUND_RUBY = 0/g' Makefile.cfg
# /usr/bin/ld: ../libstfl.a(public.o): Relocations in generic ELF (EM: 183)
# /usr/bin/ld: ../libstfl.a: error adding symbols: file in wrong format
sed -i 's/FOUND_PERL5 = 1/FOUND_PERL5 = 0/g' Makefile.cfg
}
2017-01-15 19:38:58 +01:00
termux_step_configure() {
CC+=" $CPPFLAGS"
export LDLIBS="-liconv"
}