Femboyos 2 full rewrite full working CI
This commit is contained in:
33
expect.recipe.py
Normal file
33
expect.recipe.py
Normal file
@@ -0,0 +1,33 @@
|
||||
# expect.recipe.py
|
||||
pkgname = "expect"
|
||||
pkgver = "5.45.4"
|
||||
source = f"https://prdownloads.sourceforge.net/expect/expect{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 && wget https://www.linuxfromscratch.org/patches/lfs/development/expect-{pkgver}-gcc15-1.patch",
|
||||
|
||||
# 64-bit build
|
||||
f"cd {builddir} && patch -Np1 -i ../expect-{pkgver}-gcc15-1.patch",
|
||||
f"cd {builddir} && ./configure --prefix=/usr --with-tcl=/usr/lib --enable-shared --disable-rpath --mandir=/usr/share/man --with-tclinclude=/usr/include",
|
||||
f"cd {builddir} && make -j$(nproc)",
|
||||
f"cd {builddir} && make DESTDIR={destdir} install",
|
||||
f"cd {builddir} && ln -svf expect{pkgver}/libexpect{pkgver}.so {destdir}/usr/lib",
|
||||
|
||||
f"install -v -d -m755 {destdir}/usr/share/licenses/{pkgname}/",
|
||||
f"install -v -m644 {builddir}/license.terms {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 /sources/{pkgname}{pkgver}"
|
||||
]
|
||||
Reference in New Issue
Block a user