forked from FemboyOS/fempkg_recipes
Femboyos 2 full rewrite full working CI
This commit is contained in:
42
hyprland.recipe.py
Normal file
42
hyprland.recipe.py
Normal file
@@ -0,0 +1,42 @@
|
||||
pkgname = "hyprland"
|
||||
pkgver = "0.52.1"
|
||||
source = f"https://github.com/hyprwm/Hyprland/archive/v{pkgver}/Hyprland-{pkgver}.tar.gz"
|
||||
builddir = f"/tmp/fempkg/build/{pkgname}/hyprland-source"
|
||||
fembuilddir = f"/tmp/fempkg/build/{pkgname}"
|
||||
outputdir = "/home/gabry/lfs-repo/binpkg"
|
||||
manifestdir = "/home/gabry/lfs-repo/manifests"
|
||||
destdir = f"{fembuilddir}/DESTDIR"
|
||||
|
||||
deps = [
|
||||
"cairo", "cmake", "mesa", "libdisplay-info", "libdrm", "libinput",
|
||||
"libjxl", "libpng", "librsvg", "libwebp", "libzip", "libglvnd", "pixman",
|
||||
"pugixml", "qt6", "seatd", "tomlplusplus", "wayland", "wayland-protocols", "hwdata",
|
||||
"glaze", "libliftoff", "re2", "xcb-util-errors", "xwayland", "cpio"
|
||||
]
|
||||
|
||||
build = [
|
||||
# Extract
|
||||
f"mkdir /tmp/fempkg/build {fembuilddir} || true && cd {fembuilddir} && tar -xvf /var/lib/fempkg/pkgs/source-v{pkgver}.tar.gz && "
|
||||
|
||||
f"cd {builddir} && mkdir build && cd build && cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DCMAKE_SKIP_INSTALL_RPATH=ON -W no-dev -G Ninja .. && ninja",
|
||||
f"cd {builddir}/build && DESTDIR={destdir} ninja install",
|
||||
f"""cd {builddir} && cat > {destdir}/usr/share/wayland-sessions/hyprland.desktop << EOF
|
||||
[Desktop Entry]
|
||||
Name=Hyprland
|
||||
Comment=An intelligent dynamic tiling Wayland compositor
|
||||
Exec=dbus-run-session -- Hyprland
|
||||
Type=Application
|
||||
DesktopNames=Hyprland
|
||||
Keywords=tiling;wayland;compositor;
|
||||
EOF""",
|
||||
f"cd {builddir} && sudo chmod 644 {destdir}/usr/share/wayland-sessions/hyprland.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",
|
||||
# Cleanup
|
||||
f"rm -rf {builddir} {fembuilddir}"
|
||||
]
|
||||
Reference in New Issue
Block a user