The world of Zaurus software is split in two. This quick hack makes it easier to hand-install OPIE-based packages when using a Sharp-based ROM (once you get Perl installed). It just extracts files from an OPIE-based package file ('ar' format?).
#!/usr/bin/perl -w use strict; my $line= <>; die "Not a Debian archive.$/" if "!<arch>$/" ne $line; while( defined( $line= <> ) ) { next if $/ eq $line; my( $name, $size )= ( split ' ', $line )[0,-2]; $name =~ s-/$--; if( -e $name ) { warn "Saving $name as $name.tmp$/"; $name .= '.tmp'; } open OUT, "> $name" or die "Can't create $name: $!$/"; warn "Writing $name ...$/"; local( $/ )= \4096; while( $size ) { $/= \$size if $size < ${$/}; print OUT <>.''; $size -= ${$/}; } close OUT or warn "Error closing $name: $!$/"; }
Just 'dx file.ipk' to extract the files into your current directory.
...though my original method that combined the Zaurus versions of head, tail, dd (which are all quite limited), and several by-hand iterations including copy'n'pasting sizes was rather fun...
- tye
In reply to Installing Zaurus software by tye
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |