addpkg(x11/fcitx5-hangul): 5.1.2 (#19858)

* addpkg(main/libhangul): 0.1.0-p20230415

* addpkg(x11/fcitx5-hangul): 5.1.2
This commit is contained in:
Biswapriyo Nath 2024-04-21 14:19:57 +05:30 committed by GitHub
parent 4567ac4c5d
commit a37e9ee118
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 44 additions and 0 deletions

View File

@ -0,0 +1,36 @@
TERMUX_PKG_HOMEPAGE=https://github.com/libhangul/libhangul
TERMUX_PKG_DESCRIPTION="A library to support hangul input method logic"
TERMUX_PKG_LICENSE="LGPL-2.1"
TERMUX_PKG_MAINTAINER="@termux"
_COMMIT=154a5e0f13aebc80a465336642a406d6ddfc06cf
_COMMIT_DATE=20230415
TERMUX_PKG_VERSION=0.1.0-p${_COMMIT_DATE}
TERMUX_PKG_SRCURL=git+https://github.com/libhangul/libhangul.git
TERMUX_PKG_SHA256=e1dd5bf2553f2676ac05e99069c6fd0eaa1b24c283b12678b780ea70a19a664d
TERMUX_PKG_GIT_BRANCH=main
TERMUX_PKG_DEPENDS="libexpat, libiconv"
TERMUX_PKG_BUILD_DEPENDS="libandroid-glob"
termux_step_post_get_source() {
git fetch --unshallow
git checkout $_COMMIT
local pdate="p$(git log -1 --format=%cs | sed 's/-//g')"
if [[ "$TERMUX_PKG_VERSION" != *"${pdate}" ]]; then
echo -n "ERROR: The version string \"$TERMUX_PKG_VERSION\" is"
echo -n " different from what is expected to be; should end"
echo " with \"${pdate}\"."
return 1
fi
local s=$(find . -type f ! -path '*/.git/*' -print0 | xargs -0 sha256sum | LC_ALL=C sort | sha256sum)
if [[ "${s}" != "${TERMUX_PKG_SHA256} "* ]]; then
termux_error_exit "Checksum mismatch for source files $s."
fi
}
termux_step_pre_configure() {
# prefer autotools
rm CMakeLists.txt
./autogen.sh
}

View File

@ -0,0 +1,8 @@
TERMUX_PKG_HOMEPAGE=https://github.com/fcitx/fcitx5-hangul
TERMUX_PKG_DESCRIPTION="libhangul input method support for fcitx5"
TERMUX_PKG_LICENSE="LGPL-2.1"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="5.1.2"
TERMUX_PKG_SRCURL="https://github.com/fcitx/fcitx5-hangul/archive/refs/tags/${TERMUX_PKG_VERSION}.tar.gz"
TERMUX_PKG_SHA256=805e0f1cf6b3ecb061d147fceb9f5aa690e2f2935fc282b61146c4a849ae4fe5
TERMUX_PKG_DEPENDS="fcitx5, libc++, libhangul"