forked from FemboyOS/fempkg_recipes
add acpica and mvisor
This commit is contained in:
29
acpica.recipe.py
Normal file
29
acpica.recipe.py
Normal file
@@ -0,0 +1,29 @@
|
||||
pkgname = "acpica"
|
||||
pkgver = "20251212" # why even use dates as version numbers?
|
||||
source = f"https://github.com/acpica/acpica/archive/refs/tags/{pkgver}"
|
||||
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"
|
||||
|
||||
deps = ["glibc"] # alpine linux must be crying
|
||||
|
||||
build = [
|
||||
# extract
|
||||
f"mkdir -p {fembuilddir} && cd {fembuilddir} && tar -xvf /var/lib/fempkg/pkgs/{pkgver}",
|
||||
|
||||
# compile very short
|
||||
f"cd {builddir} && make -j$(nproc)",
|
||||
f"make DESTDIR={destdir} install",
|
||||
|
||||
f"install -v -d -m755 {destdir}/usr/share/licenses/{pkgname}/",
|
||||
f"install -v -m644 {builddir}/LICENSE {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}"
|
||||
]
|
||||
0
mvisor.recipe.py
Normal file
0
mvisor.recipe.py
Normal file
Reference in New Issue
Block a user