mirror of
https://github.com/termux/termux-packages.git
synced 2025-02-07 20:10:04 +00:00
See https://github.com/s-yata/marisa-trie/blob/master/COPYING.md Fixes build failure noted in #21130
22 lines
944 B
Bash
22 lines
944 B
Bash
TERMUX_PKG_HOMEPAGE=https://github.com/s-yata/marisa-trie
|
|
TERMUX_PKG_DESCRIPTION="Matching Algorithm with Recursively Implemented StorAge"
|
|
TERMUX_PKG_LICENSE="BSD 2-Clause, LGPL-2.1"
|
|
TERMUX_PKG_LICENSE_FILE="COPYING.md"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
TERMUX_PKG_VERSION=0.2.6
|
|
TERMUX_PKG_REVISION=2
|
|
TERMUX_PKG_SRCURL=https://github.com/s-yata/marisa-trie/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
|
|
TERMUX_PKG_SHA256=1063a27c789e75afa2ee6f1716cc6a5486631dcfcb7f4d56d6485d2462e566de
|
|
TERMUX_PKG_DEPENDS="libc++"
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
|
|
termux_step_pre_configure() {
|
|
# fix arm build and potentially other archs hidden bugs
|
|
# ERROR: lib/libmarisa.so contains undefined symbols:
|
|
# 39: 00000000 0 NOTYPE GLOBAL DEFAULT UND __aeabi_uidiv
|
|
# 40: 00000000 0 NOTYPE GLOBAL DEFAULT UND __aeabi_idiv
|
|
# 49: 00000000 0 NOTYPE GLOBAL DEFAULT UND __aeabi_idivmod
|
|
LDFLAGS+=" $($CC -print-libgcc-file-name)"
|
|
autoreconf -fi
|
|
}
|