[Buildroot] handling package souce in .zip file

Lionel Landwerlin llandwerlin at gmail.com
Fri Nov 26 19:35:23 UTC 2010


What's about this :

unzip file.zip /tmp/plop
mv /tmp/plop/*/* output/build/myzippkg-0.1/

Regards,

--
Lionel Landwerlin

Le vendredi 26 novembre 2010 à 20:37 +0200, Paulius Zaleckas a écrit :
> I want to add package, but its source is available only in zip format :(
> 
> I was thinking how to handle zip, but I don't have preference:
> 1. Not generic methods, since this may be the only package with zip:
> a) add possibility to override the whole extraction procedure.
> b) add post download hook, and repackage this zip as tar.
> 2. Generic method:
> a) add very hacky INFLATE.zip which will repackage zip as tar.
> b) add special handling for INFLATE.zip without involving tar.
> 
> Repackaging zip as tar is a headache, since it is not possible to
> pipe unzip output to tar. So one has to extract zip to some dir and
> then tar this dir and delete dir after taring.
> Extracting zip without tar is also a little bit problematic since unzip
> has no equivalent option for --strip-path/--strip-components
> So maybe it is not possible to make generic support...
> 
> What do you guys think?
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot




More information about the buildroot mailing list