Add libhangul recipe (#6827)

* libhangul, new recipe
This commit is contained in:
Terra Yi
2022-04-19 00:06:03 +12:00
committed by GitHub
parent fe64c620c0
commit 8427f7dbba

View File

@@ -0,0 +1,66 @@
SUMMARY="Library to support hangul input method logic"
DESCRIPTION="A library to support hangul input method logic, hanja dictionary and small hangul \
character classification."
HOMEPAGE="https://github.com/libhangul/libhangul"
COPYRIGHT="2004-2021 Hwangjin Choe"
LICENSE="GNU LGPL v2.1"
REVISION="1"
SOURCE_URI="https://github.com/libhangul/libhangul/archive/refs/tags/libhangul-0.1.0.zip"
CHECKSUM_SHA256="e90fb326167f8d54ba637bf5d1d55cbe9956f6b03a7ae9cb0786037b4a2a487b"
SOURCE_DIR="libhangul-libhangul-$portVersion"
ARCHITECTURES="all"
libVersion="1.0.0"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
libhangul = $portVersion
cmd:hangul
lib:libhangul = $libVersionCompat
"
REQUIRES="
haiku
lib:libiconv
lib:libintl
"
PROVIDES_devel="
libhangul_devel = $portVersion
devel:libhangul = $libVersionCompat
"
REQUIRES_devel="
libhangul == $portVersion base
"
BUILD_REQUIRES="
haiku_devel
devel:libiconv
devel:libintl
"
BUILD_PREREQUIRES="
cmd:autoconf
cmd:gcc
cmd:libtoolize
cmd:make
cmd:pkg_config
"
BUILD()
{
sh ./autogen.sh
autoupdate
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
prepareInstalledDevelLib libhangul
fixPkgconfig
packageEntries devel $developDir
}