Femboyos 2 full rewrite full working CI
This commit is contained in:
33
lua.recipe.py
Normal file
33
lua.recipe.py
Normal file
@@ -0,0 +1,33 @@
|
||||
pkgname = "lua"
|
||||
pkgver = "5.4.8"
|
||||
Pkgver = pkgver[:3] # :3
|
||||
source = f"https://www.lua.org/ftp/lua-{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 = ["cmake"]
|
||||
|
||||
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/blfs/svn/lua-{pkgver}-shared_library-1.patch",
|
||||
|
||||
# 64-bit build
|
||||
f"cd {builddir} && wget https://rocketleaguechatp.duckdns.org/lua.pc -O ./lua.pc",
|
||||
f"cd {builddir} && patch -Np1 -i ../lua-{pkgver}-shared_library-1.patch && make linux -j$(nproc)",
|
||||
f"cd {builddir} && make INSTALL_DATA=\"cp -d\" INSTALL_MAN={destdir}/usr/share/man/man1 INSTALL_TOP={destdir}/usr "
|
||||
f"TO_LIB=\"liblua.so liblua.so.{Pkgver} liblua.so.{pkgver}\" install",
|
||||
f"cd {builddir} && mkdir -p {destdir}/usr/lib/pkgconfig && install -v -m644 -D lua.pc {destdir}/usr/lib/pkgconfig/lua.pc",
|
||||
|
||||
f"install -v -d -m755 {destdir}/usr/share/licenses/{pkgname}/",
|
||||
f"wget https://gitlab.archlinux.org/archlinux/packaging/packages/lua/-/raw/main/license-from-upstream -O "
|
||||
f"{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 {builddir} {fembuilddir}"
|
||||
]
|
||||
Reference in New Issue
Block a user