Files
haikuports/app-text/an/an-1.2~git.recipe
2024-05-26 16:51:34 +02:00

61 lines
1.5 KiB
Bash

SUMMARY="A fast anagram generator for alphabetic languages"
DESCRIPTION="an is a fast anagram generator that uses the system's built-in \
word dictionary to form anagrams. an supports Unicode and theoretically should \
work for any alphabetic language."
HOMEPAGE="https://salsa.debian.org/pm/an"
COPYRIGHT="2012-2014 Paul Martin"
LICENSE="GNU GPL v2"
REVISION="3"
srcGitRev="403d9a4fd75a5cfae9d5388c4a0e7f889145177f"
SOURCE_URI="https://salsa.debian.org/pm/an/-/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="e4f717f65f5cccaf610f66aaa1755a42370e1d6d7c26411255a283cdb4febdb9"
SOURCE_FILENAME="an-$portVersion-$srcGitRev.tar.gz"
SOURCE_DIR="an-$srcGitRev"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
an$secondaryArchSuffix = $portVersion
cmd:an = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libicui18n$secondaryArchSuffix
lib:libicuuc$secondaryArchSuffix
lib:libicudata$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libicui18n$secondaryArchSuffix >= 74
devel:libicuuc$secondaryArchSuffix >= 74
devel:libicudata$secondaryArchSuffix >= 74
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:make
cmd:sed
"
PATCH()
{
sed -i\
"s|/usr.*|/boot/system/data/spell_check/word_dictionary/words\"|"\
an.h
}
BUILD()
{
make INSTALLDIR=$prefix/bin MANDIR=$manDir/man6 $jobArgs
}
INSTALL()
{
mkdir -p $prefix/bin $manDir/man6
sed -i "s|/usr.*|/boot/system/data/spell_check/word_dictionary/words|"\
an.6
make install INSTALLDIR=$prefix/bin MANDIR=$manDir/man6
}