Files
haikuports/app-arch/lha/lha-1.14i.recipe

61 lines
1.2 KiB
Bash

SUMMARY="Tools to archive files using LZSS and Huffman compression (.lzh files)"
DESCRIPTION="LHA archives are often used on Amiga computers. The compression \
is rather effective and the unpacking is fast."
HOMEPAGE="http://sourceforge.jp/projects/lha/"
COPYRIGHT="1991 Masaru Oki
1993-1995 Nobutaka Watazaki
2000 Tsugio Okamoto et al."
LICENSE="lha"
REVISION="2"
SOURCE_URI="http://jaist.dl.sourceforge.jp/lha/22231/lha-1.14i-ac20050924p1.tar.gz"
CHECKSUM_SHA256="b5261e9f98538816aa9e64791f23cb83f1632ecda61f02e54b6749e9ca5e9ee4"
SOURCE_DIR="lha-1.14i-ac20050924p1"
PATCHES="lha-1.14i.patchset"
ARCHITECTURES="x86 x86_gcc2 ?x86_64"
PROVIDES="
lha = $portVersion
cmd:lha = $portVersion
"
REQUIRES="
haiku
lib:libiconv
"
BUILD_REQUIRES="
haiku_devel
devel:libiconv
"
BUILD_PREREQUIRES="
cmd:autoreconf
cmd:autoconf
cmd:automake
cmd:aclocal
cmd:autoheader
cmd:libtoolize
cmd:make
cmd:gcc
"
BUILD()
{
autoreconf -vfi
LDFLAGS=-liconv runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
# Create expander rule
mkdir -p $dataDir/expander/rules
echo '"application/x-lharc" .lha "lha l --system-kanji-code=utf8 %s" "lha x --system-kanji-code=utf8 %s"' > $dataDir/expander/rules/lha
}
TEST()
{
make check
}