forked from FemboyOS/fempkg_recipes
Femboyos 2 full rewrite full working CI
This commit is contained in:
38
dejagnu.recipe.py
Normal file
38
dejagnu.recipe.py
Normal file
@@ -0,0 +1,38 @@
|
||||
# dejagnu.recipe.py
|
||||
pkgname = "dejagnu"
|
||||
pkgver = "1.6.3"
|
||||
source = f"https://ftpmirror.gnu.org/gnu/dejagnu/dejagnu-{pkgver}.tar.gz"
|
||||
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 = []
|
||||
|
||||
build = [
|
||||
# Extract
|
||||
f"mkdir /tmp/fempkg/build {fembuilddir} || true && cd {fembuilddir} && tar -xvf /var/lib/fempkg/pkgs/{pkgname}-{pkgver}.tar.gz",
|
||||
|
||||
# 64-bit build
|
||||
f"cd {builddir} && mkdir -v build && cd build",
|
||||
f"cd {builddir}/build && ../configure --prefix=/usr",
|
||||
f"cd {builddir}/build && makeinfo --html --no-split -o doc/dejagnu.html ../doc/dejagnu.texi",
|
||||
f"cd {builddir}/build && makeinfo --plaintext -o doc/dejagnu.txt ../doc/dejagnu.texi",
|
||||
f"cd {builddir}/build && make DESTDIR={destdir} install",
|
||||
|
||||
# Install documentation
|
||||
f"cd {builddir} && install -d -m 755 {destdir}/usr/share/doc",
|
||||
f"cd {builddir}/build && install -v -dm755 {destdir}/usr/share/doc/dejagnu-{pkgver}",
|
||||
f"cd {builddir}/build && install -v -m644 doc/dejagnu.{{html,txt}} {destdir}/usr/share/doc/dejagnu-{pkgver}",
|
||||
|
||||
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