Compare commits

..

5 Commits

Author SHA1 Message Date
4a3f90633b hypr: remove udis86 as not needed by working url 2025-12-18 15:50:20 +01:00
c4e6285eb4 unknown final boss 2025-12-18 14:35:07 +01:00
cb419eeaca hypr: move muparse dep to hyprland-libs 2025-12-18 13:47:39 +01:00
99ad9b1dae hyprland: add muparser as a dep 2025-12-18 13:43:06 +01:00
d80f12aabe feat: add muparser 2025-12-18 13:42:56 +01:00
4 changed files with 36 additions and 6 deletions

View File

@@ -9,7 +9,7 @@ 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"
"pugixml", "qt6", "seatd", "tomlplusplus", "wayland", "wayland-protocols", "hwdata", "muparser",
]
build = [

View File

@@ -1,7 +1,7 @@
pkgname = "hyprland"
pkgver = "0.52.2"
source = f"https://github.com/hyprwm/Hyprland/archive/v{pkgver}/Hyprland-{pkgver}.tar.gz"
builddir = f"/tmp/fempkg/build/{pkgname}/Hyprland-{pkgver}"
source = f"https://github.com/hyprwm/Hyprland/releases/download/v{pkgver}/source-v{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"
@@ -16,9 +16,8 @@ deps = [
build = [
# Extract
f"mkdir /tmp/fempkg/build {fembuilddir} || true && cd {fembuilddir} && tar -xvf /var/lib/fempkg/pkgs/Hyprland-{pkgver}.tar.gz && "
f"cd {builddir} && wget https://github.com/canihavesomecoffee/udis86/archive/5336633af70f3917760a6d441ff02d93477b0c86/udis86-5336633af70f3917760a6d441ff02d93477b0c86.tar.gz",
f"cd {builddir} && tar -xf udis86-5336633af70f3917760a6d441ff02d93477b0c86.tar.gz && mv -T udis86-5336633af70f3917760a6d441ff02d93477b0c86 subprojects/udis86",
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

View File

@@ -266,6 +266,7 @@ ModemManager.recipe.py
mpc.recipe.py
mpfr.recipe.py
mtdev.recipe.py
muparser.recipe.py
nasm.recipe.py
ncurses.recipe.py
neon.recipe.py

30
muparser.recipe.py Normal file
View File

@@ -0,0 +1,30 @@
pkgname = "muparser"
pkgver = "2.3.5"
source = f"https://github.com/beltoforion/muparser/archive/v{pkgver}/muparser-{pkgver}.tar.gz"
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 = ["cmake"]
build = [
# Extract
f"mkdir -p {fembuilddir} && cd {fembuilddir} && tar -xvf /var/lib/fempkg/pkgs/{pkgname}-{pkgver}.tar.gz",
# 64-bit build
f"cd {builddir} && mkdir build && cd build && cmake -D CMAKE_INSTALL_PREFIX=/usr -D CMAKE_BUILD_TYPE=Release ..",
f"cd {builddir}/build && make -j$(nproc)",
f"cd {builddir}/build && make DESTDIR={destdir} install",
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}"
]