Femboyos 2 full rewrite full working CI
This commit is contained in:
29
libcanberra.recipe.py
Normal file
29
libcanberra.recipe.py
Normal file
@@ -0,0 +1,29 @@
|
||||
pkgname = "libcanberra"
|
||||
pkgver = "0.30"
|
||||
source = f"https://0pointer.de/lennart/projects/libcanberra/libcanberra-{pkgver}.tar.xz"
|
||||
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 = ["libvorbis", "alsa-lib", "gstreamer", "gtk3"]
|
||||
|
||||
build = [
|
||||
# Extract
|
||||
f"mkdir /tmp/fempkg/build {fembuilddir} || true && cd {fembuilddir} && tar -xvf /var/lib/fempkg/pkgs/{pkgname}-{pkgver}.tar.xz && wget https://www.linuxfromscratch.org/patches/blfs/svn/libcanberra-{pkgver}-wayland-1.patch",
|
||||
|
||||
# 64-bit build
|
||||
f"cd {builddir} && patch -Np1 -i ../libcanberra-{pkgver}-wayland-1.patch && ./configure --prefix=/usr --disable-oss",
|
||||
f"cd {builddir} && make -j$(nproc)",
|
||||
f"cd {builddir} && make docdir=/usr/share/doc/libcanberra-{pkgver} DESTDIR={destdir} install",
|
||||
|
||||
f"install -v -d -m755 {destdir}/usr/share/licenses/{pkgname}/",
|
||||
f"install -v -m644 {builddir}/LGPL {destdir}/usr/share/licenses/{pkgname}/LICENSE", # cant we js agree on one name dowg
|
||||
|
||||
# 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