termux-packages/packages/libcln/build.sh
Leonid Pliushch 37375312b9
explicitly set maintainer for each package
In issue https://github.com/termux/termux-packages/issues/6160 I have found
that community repo "its-pointless.github.io" specifies us as maintainer
for its packages. This is NOT TRUE and potentially misleads people using
these packages.

Now TERMUX_PKG_MAINTAINER will contain a default value which is neutral
and not specify maintainer. So all packages now have to override it to
the correct value.

[skip ci]
%ci:no-build
2020-12-20 15:16:34 +02:00

35 lines
1.2 KiB
Bash

TERMUX_PKG_HOMEPAGE=https://www.ginac.de/CLN/
TERMUX_PKG_DESCRIPTION="CLN is a library for efficient computations with all kinds of numbers in arbitrary precision"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=1.3.6
TERMUX_PKG_SRCURL=https://www.ginac.de/CLN/cln-${TERMUX_PKG_VERSION}.tar.bz2
TERMUX_PKG_SHA256=f492530e8879bda529009b6033e1923c8f4aae843149fc28c667c20b094d984a
TERMUX_PKG_DEPENDS="libc++, libgmp"
TERMUX_PKG_BREAKS="libcln-dev"
TERMUX_PKG_REPLACES="libcln-dev"
TERMUX_PKG_BUILD_IN_SRC=true
termux_step_pre_configure() {
if [ $TERMUX_ARCH = arm ]; then
# See the following section in INSTALL:
# "(*) On these platforms, problems with the assembler routines have been
# reported. It may be best to add "-DNO_ASM" to CPPFLAGS before configuring."
CPPFLAGS+=" -DNO_ASM"
CXXFLAGS+=" -fintegrated-as"
fi
sed -i -e 's%tests/Makefile %%' configure.ac
sed -i -e 's%examples/Makefile %%' configure.ac
sed -i -e 's%benchmarks/Makefile %%' configure.ac
autoreconf
}
termux_step_post_configure() {
cd $TERMUX_PKG_SRCDIR
sed -i -e 's% tests%%' Makefile
sed -i -e 's% examples%%' Makefile
sed -i -e 's% benchmarks%%' Makefile
}