forked from Mirror/pmbootstrap
pmb/aportgen/grub_efi.py: alpine mirrordir (MR 1950)
On branch stable, we would use Alpine's mirrordir "v3.11" for example.
This commit is contained in:
parent
a74aafb978
commit
460d2c0eb4
1 changed files with 4 additions and 1 deletions
|
@ -39,6 +39,9 @@ def generate(args, pkgname):
|
||||||
"buildroot_" + arch, "/var/cache/distfiles",
|
"buildroot_" + arch, "/var/cache/distfiles",
|
||||||
output_return=True)
|
output_return=True)
|
||||||
|
|
||||||
|
# Write the APKBUILD
|
||||||
|
channel_cfg = pmb.config.pmaports.read_config_channel(args)
|
||||||
|
mirrordir = channel_cfg["mirrordir_alpine"]
|
||||||
pmb.helpers.run.user(args, ["mkdir", "-p", args.work + "/aportgen"])
|
pmb.helpers.run.user(args, ["mkdir", "-p", args.work + "/aportgen"])
|
||||||
with open(args.work + "/aportgen/APKBUILD", "w", encoding="utf-8") as handle:
|
with open(args.work + "/aportgen/APKBUILD", "w", encoding="utf-8") as handle:
|
||||||
apkbuild = f"""\
|
apkbuild = f"""\
|
||||||
|
@ -56,7 +59,7 @@ def generate(args, pkgname):
|
||||||
url="https://www.gnu.org/software/grub/"
|
url="https://www.gnu.org/software/grub/"
|
||||||
license="GPL-3.0-or-later"
|
license="GPL-3.0-or-later"
|
||||||
arch="all"
|
arch="all"
|
||||||
source="grub-efi-$pkgver-r$pkgrel-$_arch.apk::$_mirror/edge/main/$_arch/grub-efi-$pkgver-r$pkgrel.apk"
|
source="grub-efi-$pkgver-r$pkgrel-$_arch.apk::$_mirror/{mirrordir}/main/$_arch/grub-efi-$pkgver-r$pkgrel.apk"
|
||||||
|
|
||||||
package() {{
|
package() {{
|
||||||
mkdir -p "$pkgdir"
|
mkdir -p "$pkgdir"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue