libchewing: add new recipe, version 0.5.1 (#7306)

This commit is contained in:
Han Pengfei
2022-10-20 00:14:50 +08:00
committed by GitHub
parent 520a25a4d9
commit eab27f8616

View File

@@ -0,0 +1,64 @@
SUMMARY="Intelligent Phonetic Input Method Library for Tranditional Chinese"
DESCRIPTION="Intelligent phonetic (Zhuyin/Bopomofo) input method library"
HOMEPAGE="https://github.com/chewing"
COPYRIGHT="2004-2006, 2008-2010, 2012-2014 The libchewing Core Team"
LICENSE="GNU LGPL v2.1"
REVISION="1"
SOURCE_URI="https://github.com/chewing/libchewing/releases/download/v${portVersion}/libchewing-$portVersion.tar.bz2"
CHECKSUM_SHA256="9708c63415fa6034435c0f38100e7d30d0e1bac927f67bec6dfeb3fef016172b"
SOURCE_DIR="libchewing-$portVersion"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
libVersion="3.3.1"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
libchewing$secondaryArchSuffix = $portVersion
lib:libchewing$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libsqlite3$secondaryArchSuffix
"
PROVIDES_devel="
libchewing${secondaryArchSuffix}_devel = $portVersion
devel:libchewing$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
libchewing == $portVersion base
"
BUILD_REQUIRES="
haiku_devel$secondaryArchSuffix
devel:libsqlite3$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:autoconf
cmd:gcc$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
./autogen.sh
runConfigure ./configure --disable-static
make $jobArgs
}
INSTALL()
{
make install
rm $libDir/libchewing.la
prepareInstalledDevelLib libchewing
fixPkgconfig
packageEntries devel $developDir
}