Femboyos 2 full rewrite full working CI
This commit is contained in:
33
grub.recipe.py
Normal file
33
grub.recipe.py
Normal file
@@ -0,0 +1,33 @@
|
||||
pkgname = "grub"
|
||||
pkgver = "2.12"
|
||||
source = f"https://ftpmirror.gnu.org/gnu/grub/grub-{pkgver}.tar.xz"
|
||||
builddir = f"/tmp/fempkg/build/{pkgname}/{pkgname}-{pkgver}"
|
||||
fembuilddir = f"/tmp/fempkg/build/{pkgname}"
|
||||
outputdir = "/home/gabry/lfs-repo/binpkg"
|
||||
manifestdir = "/home/gabry/lfs-repo/manifests"
|
||||
destdir = f"{fembuilddir}/DESTDIR"
|
||||
unsets = "unset {{C,CPP,CXX,LD}}FLAGS"
|
||||
|
||||
deps = []
|
||||
|
||||
build = [
|
||||
# Extract
|
||||
f"mkdir /tmp/fempkg/build {fembuilddir} || true && cd {fembuilddir} && tar -xvf /var/lib/fempkg/pkgs/{pkgname}-{pkgver}.tar.xz",
|
||||
|
||||
# 64-bit build
|
||||
f"cd {builddir} && {unsets} && echo depends bli part_gpt > grub-core/extra_deps.lst",
|
||||
f"cd {builddir} && {unsets} && ./configure --prefix=/usr --sysconfdir=/etc --disable-efiemu --with-platform=efi --target=x86_64 --disable-werror",
|
||||
f"cd {builddir} && {unsets} && make -j$(nproc)",
|
||||
f"cd {builddir} && {unsets} && make DESTDIR={destdir} install",
|
||||
f"cd {builddir} && {unsets} && install -d -m 755 {destdir}/usr/share/bash-completion/completions && mv -v {destdir}/etc/bash_completion.d/grub {destdir}/usr/share/bash-completion/completions",
|
||||
|
||||
f"install -v -d -m755 {destdir}/usr/share/licenses/{pkgname}/",
|
||||
f"install -v -m644 {builddir}/COPYING {destdir}/usr/share/licenses/{pkgname}/LICENSE",
|
||||
|
||||
# Make tarball + manifests
|
||||
f"mkdir -p {outputdir} && cd {destdir} && tar --transform 's|^\\.||' -I zstd -cf {outputdir}/{pkgname}-{pkgver}.tar.zst .",
|
||||
f"mkdir -p {manifestdir} && tar -tf {outputdir}/{pkgname}-{pkgver}.tar.zst | grep -v '/$' > {manifestdir}/{pkgname}.txt",
|
||||
|
||||
# Cleanup
|
||||
f"rm -rf {fembuilddir}"
|
||||
]
|
||||
Reference in New Issue
Block a user