From b5e0e65187f86ca1b0bd05e8d3794ff41c6798fa Mon Sep 17 00:00:00 2001 From: Nolan Clark Date: Wed, 24 Dec 2014 17:54:55 -0600 Subject: [PATCH] Added recipe for unlzx --- .../additional-files/unlzx-expander-rules | 1 + app-arch/unlzx/unlzx-1.1.recipe | 41 +++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 app-arch/unlzx/additional-files/unlzx-expander-rules create mode 100644 app-arch/unlzx/unlzx-1.1.recipe diff --git a/app-arch/unlzx/additional-files/unlzx-expander-rules b/app-arch/unlzx/additional-files/unlzx-expander-rules new file mode 100644 index 000000000..75b5f81ce --- /dev/null +++ b/app-arch/unlzx/additional-files/unlzx-expander-rules @@ -0,0 +1 @@ +"application/x-lzx" .lzx "unlzx -v %s" "unlzx %s" diff --git a/app-arch/unlzx/unlzx-1.1.recipe b/app-arch/unlzx/unlzx-1.1.recipe new file mode 100644 index 000000000..938de0dbc --- /dev/null +++ b/app-arch/unlzx/unlzx-1.1.recipe @@ -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 +}