Added recipe for unlzx

This commit is contained in:
Nolan Clark
2014-12-24 17:54:55 -06:00
parent 22be0c52aa
commit b5e0e65187
2 changed files with 42 additions and 0 deletions

View File

@@ -0,0 +1 @@
"application/x-lzx" .lzx "unlzx -v %s" "unlzx %s"

View File

@@ -0,0 +1,41 @@
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"
SRC_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
}