Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
102 user(s) are online (74 user(s) are browsing Forums)

Members: 1
Guests: 101

nbache, more...

Headlines

 
  Register To Post  

Lha compressor for Linux?
Home away from home
Home away from home


See User information
What do people use to create lha files on Linux systems and cygwin? Lhasa only decompresses lha files; it can't compress.

I'm converting the build script for ZitaFTP Server to a bash script so that I can automate builds. Being able to create the final *.lha is a stumbling block right now.

Hans

http://hdrlab.org.nz/ - Amiga OS 4 projects, programming articles and more.
https://keasigmadelta.com/ - more of my work
Go to top
Re: Lha compressor for Linux?
Just can't stay away
Just can't stay away


See User information
@Hans

Not sure where I got this version from but it compiles on my Ubuntu system and does appear to work more or less fine:

https://www.dropbox.com/s/cjl6ze37nagbksp/lha-114i-unix.7z?dl=0

Generally I use the AmigaOS lha command just to be safe when I need an lha archive for OS4Depot or Aminet (and 7zip in other cases) so I can't say that I've tested it very thoroughly.

Go to top
Re: Lha compressor for Linux?
Site Builder
Site Builder


See User information
@salass00
It might be the one from
https://osdn.net/projects/lha/
http://lha.osdn.jp/
https://github.com/jca02266/lha

@hans
There is also jlha-utils that might be helpful
https://packages.ubuntu.com/xenial/jlha-utils

Follow me on
Ko-fi, Twitter, YouTube, Twitch
Go to top
Re: Lha compressor for Linux?
Site Builder
Site Builder


See User information
Most Linux distributions use the lha 1.14i version. On Manjaro there is also version 1.17 from 2002, which can be found at
http://web.archive.org/web/2012110801 ... -it.ac.jp/~ishii/lhaunix/
Probably, this happens because the source of 1.17 is not publicly available.

Check the following page for all the versions in different distributions
https://repology.org/project/lha/packages

Follow me on
Ko-fi, Twitter, YouTube, Twitch
Go to top
Re: Lha compressor for Linux?
Home away from home
Home away from home


See User information
@salass00 & walkero

Thanks. I was hoping there was a standard archiver, but building my own is still acceptable. Jlha isn't an option, because I want the script to work out-of-the box on all platforms (incl. AmigaOS).

Another alternative would be to use a different format. Unarc can handle other formats...

Hans

http://hdrlab.org.nz/ - Amiga OS 4 projects, programming articles and more.
https://keasigmadelta.com/ - more of my work
Go to top
Re: Lha compressor for Linux?
Home away from home
Home away from home


See User information
@salass00

Quote:
I just tried this version, but it's missing the -r option (collect files recursively). So, I'd need to vary the command line depending on platform.

It's very tempting to switch to zip format to sidestep all this...

Hans

http://hdrlab.org.nz/ - Amiga OS 4 projects, programming articles and more.
https://keasigmadelta.com/ - more of my work
Go to top
Re: Lha compressor for Linux?
Home away from home
Home away from home


See User information
@Hans
We surely use lha packer on linux to pack dopus5 archives (include directories and subdirectories and all stuff). See there https://sourceforge.net/p/dopus5allami ... ree/trunk/source/makefile

Relevant part :

DEST := ../releases/
ifeq ($(SYSTEM), amiga)
ARCDEST := /releases/
LHA := lha a ---q
else
ARCDEST := $(DEST)
LHA := lha ao5q
endif


So amiga's "lha a -a -r -q" are the same as on linux "lha ao5q" , and my logs says that we use that one:

http://sourceforge.jp/projects/lha/do ... -1.14i-ac20040929.tar.gz/

Probably "-r" just weren't need it with that linux packer, as it taked for granted as default ?

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: Lha compressor for Linux?
Just popping in
Just popping in


See User information
@Hans

On ubuntu

sudo apt install lhasa

gives you lha

cheers

billy

Go to top
Re: Lha compressor for Linux?
Home away from home
Home away from home


See User information
@billyfish
"lhasa" for unpacking only, not for packing

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: Lha compressor for Linux?
Just popping in
Just popping in


See User information
@Hans

Use the Java based lha package:
apt install jlha-utils libjlha-java

Why stop it now, just when I am hating it?

Thore Böckelmann
Go to top
Re: Lha compressor for Linux?
Home away from home
Home away from home


See User information
@kas1e

Thanks. I've adapted your makefile code. Switching to zip wouldn't have solved anything, because I'd probably still need different commands to archive everything.

Hans

http://hdrlab.org.nz/ - Amiga OS 4 projects, programming articles and more.
https://keasigmadelta.com/ - more of my work
Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project