0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-09-27 16:44:57 +00:00
Files
termux-packages/packages/enchant/build.sh
Termux Github Actions d77550d3c8 bump(main/enchant): 2.8.3
This commit has been automatically submitted by Github Actions.
2025-04-28 18:14:19 +00:00

28 lines
1.1 KiB
Bash

TERMUX_PKG_HOMEPAGE=https://rrthomas.github.io/enchant/
TERMUX_PKG_DESCRIPTION="Wraps a number of different spelling libraries and programs with a consistent interface"
TERMUX_PKG_LICENSE="LGPL-2.1"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="2.8.3"
TERMUX_PKG_SRCURL=https://github.com/rrthomas/enchant/releases/download/v${TERMUX_PKG_VERSION}/enchant-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=31bb3df74cb60d6150f8611a7875d915f15d070e5a68687e075876faebef7ef7
TERMUX_PKG_DEPENDS="aspell, glib, hunspell, libc++"
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--enable-relocatable"
termux_step_pre_configure() {
local _libgcc="$($CC -print-libgcc-file-name)"
LDFLAGS+=" -L$(dirname $_libgcc) -l:$(basename $_libgcc)"
}
termux_step_post_massage() {
# Do not forget to bump revision of reverse dependencies and rebuild them
# after SOVERSION is changed.
local _SOVERSION_GUARD_FILES="lib/libenchant-2.so"
local f
for f in ${_SOVERSION_GUARD_FILES}; do
if [ ! -e "${f}" ]; then
termux_error_exit "SOVERSION guard check failed."
fi
done
}