Skip to content

aportgen: add feature to fork upstream packages

Administrator requested to merge feature/fork-upstream-package into master

This MR add the --fork-upstream argument to the pmboostrap aportgen command, which downloads the APKBUILD and related files and copies them into the pmaports/temp folder.

Example:

$ pmbootstrap aportgen --fork-upstream main/kbd kbd
[22:32:08] Generate aport: kbd
[22:32:08] Update package index for x86_64 (1 file(s))
[22:32:09] NOTE: chroot is still active (use 'pmbootstrap shutdown' as necessary)
[22:32:09] Done
$ find aports/temp/kbd/
aports/temp/kbd/
aports/temp/kbd/bkeymaps.patch
aports/temp/kbd/loadkeys.confd
aports/temp/kbd/loadkeys.initd
aports/temp/kbd/0001-libkbdfile-Check-compression-suffix-even-if-the-suff.patch
aports/temp/kbd/error.h
aports/temp/kbd/fix-tests.patch
aports/temp/kbd/APKBUILD

I've added the WIP prefix because the feature can be improved by automatically to the following things:

  • remove the Contributor/Maintainer lines
  • add the # Forked from Alpine to ... comment
  • rename the pkgver variable to _pkgver
  • add the pkgver=9999 variable
  • anything else???
Edited by Administrator

Merge request reports

Loading