feat: add discord
This commit is contained in:
29
dbus-glib.recipe.py
Normal file
29
dbus-glib.recipe.py
Normal file
@@ -0,0 +1,29 @@
|
||||
pkgname = "dbus-glib"
|
||||
pkgver = "0.114"
|
||||
source = f"https://gitlab.freedesktop.org/dbus/dbus-glib.git"
|
||||
builddir = f"/tmp/fempkgbuild/{pkgname}"
|
||||
fembuilddir = builddir
|
||||
source_type = "git"
|
||||
outputdir = "/home/gabry/lfs-repo/binpkg"
|
||||
manifestdir = "/home/gabry/lfs-repo/manifests"
|
||||
destdir = f"{fembuilddir}/DESTDIR"
|
||||
|
||||
deps = ["gtk-doc", "glib", "expat", "glibc", "expat"]
|
||||
|
||||
build = [
|
||||
|
||||
# 64-bit build
|
||||
f"cd {builddir} && git checkout {pkgname}-{pkgver} && autoreconf -fi && ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --with-gtk=3 --enable-gtk-doc",
|
||||
f"cd {builddir} && make -j$(nproc)",
|
||||
f"cd {builddir} && make DESTDIR={destdir} install",
|
||||
|
||||
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