Files
fempkg_recipes/hyprexpo.recipe.py
2026-01-28 17:53:44 +01:00

31 lines
1.2 KiB
Python

pkgname = "hyprexpo"
pkgver = "0.53.0"
source = f"https://github.com/hyprwm/hyprland-plugins.git"
source_type = "git"
builddir = f"/tmp/fempkgbuild/hyprland-plugins"
fembuilddir = builddir
outputdir = "/home/gabry/lfs-repo/binpkg"
manifestdir = "/home/gabry/lfs-repo/manifests"
destdir = f"{fembuilddir}/DESTDIR"
deps = ["hyprland"]
build = [
# 64-bit build
f"cd {builddir} && git checkout 8c1212e96b81aa5f11fe21ca27defa2aad5b3cf3",
f"su gabry -c 'XDG_RUNTIME_DIR=/run/user/$EUID hyprpm update || true'",
f"cd {builddir}/hyprexpo && make -j$(nproc)",
f"cd {builddir}/hyprexpo && install -v -d -m755 {destdir}/usr/share/hypr/plugins && install -v -m775 hyprexpo.so {destdir}/usr/share/hypr/plugins/",
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",
# Cleanup
f"rm -rf {fembuilddir}"
]