[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Love2d Game Packaging Policy



On 10/01/14 11:17, Steven Hamilton wrote:
> Miriam Ruiz writes:
>> In my opinion, the source code should be decompressed in the original
>> source tarball, and it should be debian/rules who would have to create
>> the zip file with the extension .love that will go into the binary
>> package.
>
> Sounds fair. Are there any packages that do that sort of thing already?
> I haven't done that sort of thing with a rules file yet.

The openarena-data family do this (Quake 3 engine PK3 files are just
renamed zip files, too).

The debian/rules is far more complicated than you need, because the
Quake 3 engine's idea of network compatibility requires that the files
in the zip file are in the same order with the same CRC32 checksums,
which gets "interesting" for bytecode executables - if there's a less
crazy package to use as an example, use that one instead :-)

If it's the simplest case (you have to pack up all files from the
directory ./mygame into a zip file named ./mygame.love) you can just
build-depend on zip and do something like this:

override-dh_auto_build:
	cd mygame && zip -q -9 ../mygame.love .

    S


Reply to: