feat: add gpu-screen-recorder-gtk and its 3000 dependencies
This commit is contained in:
32
libdbusmenu.recipe.py
Normal file
32
libdbusmenu.recipe.py
Normal file
@@ -0,0 +1,32 @@
|
||||
pkgname = "libdbusmenu"
|
||||
pkgver = "18.10.20180917"
|
||||
source = f"https://deb.debian.org/debian/pool/main/libd/libdbusmenu/libdbusmenu_{pkgver}~bzr492+repack1.orig.tar.xz"
|
||||
builddir = f"/tmp/fempkg/build/{pkgname}/{pkgname}-{pkgver}~bzr492"
|
||||
fembuilddir = f"/tmp/fempkg/build/{pkgname}"
|
||||
outputdir = "/home/gabry/lfs-repo/binpkg"
|
||||
manifestdir = "/home/gabry/lfs-repo/manifests"
|
||||
destdir = f"{fembuilddir}/DESTDIR"
|
||||
exports = "export HAVE_VALGRIND_TRUE='#' && export HAVE_VALGRIND_FALSE=''"
|
||||
|
||||
deps = ["gnome-common", "gtk-doc"]
|
||||
|
||||
build = [
|
||||
# Extract
|
||||
f"mkdir -p {fembuilddir} && cd {fembuilddir} && tar -xvf /var/lib/fempkg/pkgs/{pkgname}_{pkgver}~bzr492+repack1.orig.tar.xz",
|
||||
|
||||
# 64-bit build
|
||||
f"cd {builddir} && NOCONFIGURE=1 ./autogen.sh && {exports} && ./configure --prefix=/usr --disable-{{dumper,static,tests}} --with-gtk=3 --disable-vala && "
|
||||
f"sed -i -e 's/ -shared / -Wl,-O1,--as-needed\\0/g' libtool",
|
||||
f"cd {builddir} && make -j$(nproc)",
|
||||
f"cd {builddir} && make DESTDIR={destdir} install",
|
||||
|
||||
f"install -v -d -m755 {destdir}/usr/share/licenses/{pkgname}/",
|
||||
f"cp -pv {builddir}/COPYING* {destdir}/usr/share/licenses/{pkgname}/",
|
||||
|
||||
# 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