Thanks. Exactly what I was looking for

On Wed, Oct 12, 2016 at 10:10 AM Kenneth Hoste <kenneth.ho...@ugent.be>
wrote:

> Hi Martin,
>
>
> On 10/10/16 15:09, Martin wrote:
>
> Hi,
> I'm trying to package a software that has its input files "split":
>
> foo.tar.gz.aa
> foo.tar.gz.ab
> foo.tar.gz.ac
>
> So a cat "foo.tar.gz.* | tar xf -" will do the "right thing"
>
> When I add them too the sources to download EB bails out with "Unknown
> file type". They are not actually code or need to be compiled but are
> required for the SW to run properly. And they are specific to a certain
> version of the software.
>
> What would be the best method to still use those files? Am I missing some
> kind of "supplementary file" option that let's me handle this more
> generally with postinstallcmds or something similiar?
>
>
> You can specify custom unpack commands for sources, you may be able to get
> away with that...
>
> You'll have to play around with it, but try something this (the '%s' is
> replaced with the full path of the source file):
>
> sources = [
>     # just copy first n-1 sources to build dir
>     ('foo.tar.gz.aa', "cp %s ."),
>     ('foo.tar.gz.ab', "cp %s ."),
>     # copy last source and extract
>     ('foo.tar.gz.ac', "cp %s .; cat foo.tar.gz.* | tar xf -"),
> ]
>
> Let us know how that works out.
>
>
> regards,
>
> Kenneth
>
-- 
-- 
http://www.xing.com/profile/Martin_Marcher
http://www.linkedin.com/in/martinmarcher
Mobil: +43 / 660 / 62 45 103
UID: ATU68801424

Reply via email to