Femboyos 2 full rewrite full working CI
This commit is contained in:
33
sdbus-cpp.recipe.py
Normal file
33
sdbus-cpp.recipe.py
Normal file
@@ -0,0 +1,33 @@
|
||||
pkgname = "sdbus-cpp" # SLFS sdbus-c++
|
||||
pkgver = "2.2.1"
|
||||
source = f"https://github.com/Kistler-Group/sdbus-cpp/archive/v{pkgver}/sdbus-cpp-{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", "dbus"]
|
||||
|
||||
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 build && cd build && cmake -D CMAKE_INSTALL_PREFIX=/usr -D CMAKE_BUILD_TYPE=Release "
|
||||
f"-D CMAKE_INSTALL_DOCDIR=/usr/share/doc/sdbus-c++-{pkgver} -D CMAKE_SKIP_INSTALL_RPATH=ON -G Ninja ..",
|
||||
|
||||
f"cd {builddir}/build && ninja",
|
||||
f"cd {builddir}/build && DESTDIR={destdir} ninja install",
|
||||
|
||||
f"install -v -d -m755 {destdir}/usr/share/licenses/{pkgname}/",
|
||||
f"install -v -m644 {builddir}/COPYING {destdir}/usr/share/licenses/{pkgname}/COPYING",
|
||||
f"install -v -m644 {builddir}/COPYING-LGPL-Exception {destdir}/usr/share/licenses/{pkgname}/COPYING-LGPL-Exception",
|
||||
|
||||
# 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