forked from FemboyOS/fempkg_recipes
Femboyos 2 full rewrite full working CI
This commit is contained in:
30
iana-etc.recipe.py
Normal file
30
iana-etc.recipe.py
Normal file
@@ -0,0 +1,30 @@
|
||||
# man-pages.recipe.py # non penso # Z
|
||||
pkgname = "iana-etc"
|
||||
pkgver = "20251120"
|
||||
builddir = f"/tmp/fempkg/build/{pkgname}/{pkgname}-{pkgver}"
|
||||
fembuilddir = f"/tmp/fempkg/build/{pkgname}"
|
||||
source = f"https://github.com/Mic92/iana-etc/releases/download/{pkgver}/iana-etc-{pkgver}.tar.gz"
|
||||
outputdir = "/home/gabry/lfs-repo/binpkg"
|
||||
manifestdir = "/home/gabry/lfs-repo/manifests"
|
||||
destdir = f"{fembuilddir}/DESTDIR"
|
||||
|
||||
deps = []
|
||||
|
||||
# Build commands
|
||||
build = [
|
||||
f"mkdir /tmp/fempkg/build {fembuilddir} || true && cd {fembuilddir} && tar -xvf /var/lib/fempkg/pkgs/{pkgname}-{pkgver}.tar.gz",
|
||||
f"mkdir -p {destdir}/etc",
|
||||
f"cd {builddir} && cp services protocols {destdir}/etc",
|
||||
|
||||
f"install -v -d -m755 {destdir}/usr/share/licenses/{pkgname}/",
|
||||
f"wget https://raw.githubusercontent.com/Mic92/iana-etc/refs/heads/master/LICENSE -O {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