mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
61 lines
1.3 KiB
Bash
61 lines
1.3 KiB
Bash
SUMMARY="Unicode string library"
|
|
DESCRIPTION="libgrapheme is an extremely simple freestanding C99 library providing \
|
|
utilities for properly handling strings according to the Unicode standard."
|
|
HOMEPAGE="https://libs.suckless.org/libgrapheme"
|
|
COPYRIGHT="2022 Laslo Hunhold"
|
|
LICENSE="ISC"
|
|
REVISION="2"
|
|
SOURCE_URI="https://dl.suckless.org/libgrapheme/libgrapheme-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="a68bbddde76bd55ba5d64116ce5e42a13df045c81c0852de9ab60896aa143125"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
libVersionCompat="$portVersion compat >= ${portVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
libgrapheme$secondaryArchSuffix = $portVersion
|
|
lib:libgrapheme$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
libgrapheme${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libgrapheme$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
libgrapheme$secondaryArchSuffix == $portVersion
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:make
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make LIBPREFIX=$libDir INCPREFIX=$includeDir \
|
|
MANPREFIX=$manDir LDCONFIG= install
|
|
|
|
prepareInstalledDevelLib libgrapheme
|
|
|
|
packageEntries devel \
|
|
$developDir \
|
|
$manDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make test
|
|
}
|