Compare commits
5 Commits
3c2fbcd762
...
4a3f90633b
| Author | SHA1 | Date | |
|---|---|---|---|
| 4a3f90633b | |||
| c4e6285eb4 | |||
| cb419eeaca | |||
| 99ad9b1dae | |||
| d80f12aabe |
@@ -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 = [
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
30
muparser.recipe.py
Normal 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}"
|
||||
]
|
||||
Reference in New Issue
Block a user