31 lines
1.3 KiB
Python
31 lines
1.3 KiB
Python
pkgname = "gpu-screen-recorder-gtk"
|
|
pkgver = "5.7.9"
|
|
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}"
|
|
]
|