forked from FemboyOS/fempkg_recipes
feat: add gpu-screen-recorder-gtk and its 3000 dependencies
This commit is contained in:
30
gpu-screen-recorder-gtk.recipe.py
Normal file
30
gpu-screen-recorder-gtk.recipe.py
Normal file
@@ -0,0 +1,30 @@
|
||||
pkgname = "gpu-screen-recorder-gtk"
|
||||
pkgver = "5.7.8"
|
||||
source = f"https://repo.dec05eba.com/gpu-screen-recorder-gtk"
|
||||
source_type = "git"
|
||||
builddir = f"/tmp/fempkgbuild/{pkgname}"
|
||||
fembuilddir = builddir
|
||||
outputdir = "/home/gabry/lfs-repo/binpkg"
|
||||
manifestdir = "/home/gabry/lfs-repo/manifests"
|
||||
destdir = f"{fembuilddir}/DESTDIR"
|
||||
|
||||
deps = ["gpu-screen-recorder", "gtk3", "libayatana-appindicator", "desktop-file-utils"]
|
||||
|
||||
build = [
|
||||
|
||||
# 64-bit build
|
||||
f"cd {builddir} && mkdir -pv build && cd build && meson setup --prefix=/usr --buildtype=release ..",
|
||||
f"cd {builddir}/build && ninja",
|
||||
f"cd {builddir}/build && DESTDIR={destdir} ninja install",
|
||||
f"cd {builddir} && install -v -d -m755 {destdir}/usr/share/applications && install -v -m644 com.dec05eba.gpu_screen_recorder.desktop "
|
||||
f"{destdir}/usr/share/applications/com.dec05eba.gpu_screen_recorder.desktop",
|
||||
|
||||
f"install -v -d -m755 {destdir}/usr/share/licenses/{pkgname}/",
|
||||
f"install -v -m644 {builddir}/LICENSE {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",
|
||||
|
||||
f"rm -rf {builddir}"
|
||||
]
|
||||
Reference in New Issue
Block a user