Files
haikuports/app-text/libnumbertext/libnumbertext-1.0.3.recipe
Jerome Duval dedc2c6324 code style.
2018-08-06 15:08:49 +02:00

64 lines
1.5 KiB
Bash
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
SUMMARY="A library for number to number name conversion"
DESCRIPTION="Numbertext can convert numbers to their names, including cardinal \
and ordinal numbers, ordinal indicators and money amounts with currencies in \
more than 40 languages and numeral systems."
HOMEPAGE="https://numbertext.org/"
COPYRIGHT="20092018 László Németh et al."
LICENSE="BSD (3-clause)"
REVISION="1"
SOURCE_URI="https://github.com/Numbertext/libnumbertext/releases/download/1.0/libnumbertext-1.0.3.tar.xz"
CHECKSUM_SHA256="b52f6dc468a5cc93d572cf28cab88c6c68bc45e59a0f69e9b327327db3e7e5a5"
PATCHES="libnumbertext-$portVersion.patchset"
ARCHITECTURES="!x86_gcc2 x86_64"
SECONDARY_ARCHITECTURES="x86"
libVersion="0.0.0"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
libnumbertext$secondaryArchSuffix = $portVersion
cmd:spellout = $portVersion
lib:libnumbertext_1.0$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
"
PROVIDES_devel="
libnumbertext${secondaryArchSuffix}_devel = $portVersion
devel:libnumbertext_1.0$secondaryArchSuffix = $libVersion
"
REQUIRES_devel="
libnumbertext$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:awk
cmd:cmp
cmd:gcc$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
prepareInstalledDevelLibs \
libnumbertext-1.0
fixPkgconfig
packageEntries devel \
$developDir
}