Wrap abuild's newapkbuild
Created by: ollieparanoid
Alpine's abuild provides a nice newapkbuild tool, for which you can specify the source, and it will generate a state-of-the-art APKBUILD file accordingly by analyzing it.
We could simply wrap it with something like:
pmbootstrap newapkbuild [--folder=main] [everything passed through]
The --folder
parameter will not collide, as it only uses single letter parameters.
When called, it would do the following:
- install
abuild
in the native chroot - run
newapkbuild
with all parameters - create a new folder in aports/folder/pkgname (we can parse the pkgname from the resulting APKBUILD)
- copy the generated APKBUILD to that new folder