Files
haikuports/app-arch/unlzx/unlzx-1.1.recipe
2015-08-04 12:08:31 -04:00

42 lines
850 B
Bash

SUMMARY="Decompresses LZX archives on multiple platforms"
DESCRIPTION="LZX is the name of an LZ77 family compression algorithm invented \
by Johnathon Forbes and Tomi Poutanen. unlzx is a program designed to extract \
these archives."
HOMEPAGE="http://aminet.net/package/misc/unix/unlzx.c.gz"
SOURCE_URI="git+https://github.com/tweakdeveloper/unlzx.git#36a85e7"
ADDITIONAL_FILES="unlzx-expander-rules"
REVISION="3"
LICENSE="Public Domain"
COPYRIGHT="2001 Erik Meusel"
ARCHITECTURES="x86_gcc2 x86"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
cmd:gcc
cmd:strip
"
PROVIDES="
unlzx = $portVersion
cmd:unlzx
"
BUILD()
{
gcc unlzx.c -o unlzx
strip unlzx
}
INSTALL()
{
expanderRulesDir=$dataDir/expander/rules
mkdir -p $binDir $expanderRulesDir
cp unlzx $binDir
cp $portDir/additional-files/unlzx-expander-rules $expanderRulesDir
}