tazarch: convert PKGBUILD(arch linux) to Receipt

[ Thread Index | Date Index | More lists.tuxfamily.org/slitaz Archives ]


Hi all,

We have a growing repository of over 2000+ packages. We also have
tools to convert .deb and .rpm binary packages to .tazpkg. Still, we
sometimes need to cook a new package and we often desire to have a
faster and an easier way to do it. Tazarch tries to address this by
converting Arch Linux PKGBUILD to Slitaz Receipt. The goal of tazarch
is to create a "reasonable" receipt (almost correct) that is "easy to
start with". It does not aim for 100% accuracy in conversion because
there can be innumerable ways in which a PKGBUILD can be written. You
would still need to improve the generated receipt.

I have chosen Arch Linux because: a) it has about 10000+ packages; and
b) PKGBUILD and Receipt are both inspired by BSD's Ports.

As usual, if you find bugs, please help to improve them.

Usage:

tazarch pkgname

E.g., for a new pacakage, say 'amyedit', you just need to do:

tazarch amyedit

Tazarch will download package's (amyedit) PKGBUILD from the
corresponding Arch's repo automatically; and then it will try to
convert it to an equivalent receipt. Tazarch also creates an alternate
wok "/home/slitaz/archwok" (root permission) where it will save a
backup_pkgbuild and receipt. After conversion, you may compare the
pkgbuild and the receipt to check any errors. That's all.

You can also use it on an existing pacakge, say fluxbox or ffmpeg
(arbitrarily chosen as they sound really complex pkgs). Do "tazarch
fluxbox" or "tazarch ffmpeg" and compare it with the receipt in our
repos. See the advantages and limitations of this tool.

Tazarch tazpkg also contains another file "match_pkgnames.list" that
is stored in "/var/lib/tazarch". This file is a lookup table for
matching Arch's pkg to equivalent Slitaz PACKAGE. Tazarch checks this
file to see if we use a different name than Arch for the same pkg in
our repos and thus it tries to improve DEPENDS and BUILD_DEPENDS
variables. If it cannot find a pkg, it will prompt.
match_pkgnames.list is quite small right now. I hope to improve it
over time. So, If you know the equivalent pkg in Slitaz repos, please
add it to this file and send me a "diff" file.

More details later. Try it and enjoy the fast food!! Hopefully, some
people will like its taste :-)

Thanks

Rohit

Attachment: tazarch-0.1.tazpkg
Description: Binary data



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/