Compare commits
4 Commits
69d8e596ad
...
0b92bd1482
| Author | SHA1 | Date | |
|---|---|---|---|
| 0b92bd1482 | |||
| 51f5415450 | |||
| fa32490431 | |||
| 2cb9caabf6 |
35
heroic-games-launcher.recipe.py
Normal file
35
heroic-games-launcher.recipe.py
Normal file
@@ -0,0 +1,35 @@
|
||||
pkgname = "heroic-games-launcher"
|
||||
pkgver = "2.18.1"
|
||||
source = f"https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/archive/refs/tags/v{pkgver}.tar.gz"
|
||||
builddir = f"/tmp/fempkg/build/{pkgname}/HeroicGamesLauncher-{pkgver}"
|
||||
fembuilddir = f"/tmp/fempkg/build/{pkgname}"
|
||||
outputdir = "/home/gabry/lfs-repo/binpkg"
|
||||
manifestdir = "/home/gabry/lfs-repo/manifests"
|
||||
destdir = f"{fembuilddir}/DESTDIR"
|
||||
|
||||
deps = ["electron", "pnpm", "nodejs"]
|
||||
|
||||
build = [
|
||||
# Extract
|
||||
f"mkdir -p {fembuilddir} && cd {fembuilddir} && tar -xvf /var/lib/fempkg/pkgs/v{pkgver}.tar.gz",
|
||||
|
||||
# 64-bit build
|
||||
f"cd {builddir} && pnpm install",
|
||||
f"cd {builddir} && pnpm dist:linux tar.xz",
|
||||
f"cd {builddir} && mkdir -p {destdir}/usr/lib/{pkgname} {destdir}/usr/bin && mv dist/linux-unpacked/* {destdir}/usr/lib/{pkgname} && "
|
||||
f"ln -sf /usr/lib/{pkgname}/heroic {destdir}/usr/bin/heroic",
|
||||
|
||||
f"desktop-file-edit {builddir}/flatpak/com.heroicgameslauncher.hgl.desktop --set-key=Exec \"--set-value=heroic %u\"",
|
||||
f"mkdir -p {destdir}/usr/share/applications && install -v -m644 {builddir}/flatpak/com.heroicgameslauncher.hgl.desktop {destdir}"
|
||||
f"/usr/share/applications/com.heroicgameslauncher.hgl.desktop",
|
||||
|
||||
f"install -v -d -m755 {destdir}/usr/share/licenses/{pkgname}/",
|
||||
f"install -v -m644 {builddir}/COPYING {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}"
|
||||
]
|
||||
@@ -136,6 +136,7 @@ gtk-doc.recipe.py
|
||||
gtkmm4.recipe.py
|
||||
gzip.recipe.py
|
||||
harfbuzz.recipe.py
|
||||
heroic-games-launcher.recipe.py
|
||||
hicolor-icon-theme.recipe.py
|
||||
highway.recipe.py
|
||||
hwdata.recipe.py
|
||||
@@ -317,6 +318,7 @@ pkgconf.recipe.py
|
||||
plasma-wayland-protocols.recipe.py
|
||||
plymouth.recipe.py
|
||||
pm-utils.recipe.py
|
||||
pnpm.recipe.py
|
||||
polkit-gnome.recipe.py
|
||||
polkit-qt.recipe.py
|
||||
polkit.recipe.py
|
||||
|
||||
@@ -53,4 +53,5 @@ triggers = [
|
||||
{"rebuild_package": ["nvidia"]},
|
||||
f"dracut -f -v /boot/initramfs-{pkgver}.img {pkgver}",
|
||||
f"find /boot -mindepth 1 -maxdepth 1 -type f ! -name 'initramfs-{pkgver}.img' -name 'initramfs-*.img' -exec rm -rf {{}} +",
|
||||
f"grub-mkconfig -o /boot/grub/grub.cfg",
|
||||
]
|
||||
@@ -17,6 +17,9 @@ build = [
|
||||
f"cd {builddir} && make -j$(nproc)",
|
||||
f"cd {builddir} && make DESTDIR={destdir} install && install -d -m 755 {destdir}/usr/share/doc && ln -sf node {destdir}/usr/share/doc/node-{pkgver}",
|
||||
|
||||
f"rm -rf {destdir}/usr/bin/{{npm,npx,corepack}} && for i in {{npm,npx}}; do ln -sf /lib/node_modules/npm/bin/$i-cli.js {destdir}/usr/bin/$i; done && "
|
||||
f"ln -sf /lib/node_modules/corepack/dist/corepack.js {destdir}/usr/bin/corepack", # fix symlinks
|
||||
|
||||
f"install -v -d -m755 {destdir}/usr/share/licenses/{pkgname}/",
|
||||
f"install -v -m644 {builddir}/LICENSE {destdir}/usr/share/licenses/{pkgname}/LICENSE",
|
||||
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
pkgname = "nvidia"
|
||||
pkgver = "580.119.02"
|
||||
kernel_ver = "6.18.2"
|
||||
source = f"https://rocketleaguechatp.duckdns.org/kernel-source-prep-{kernel_ver}.tar.xz"
|
||||
source = f"https://rocketleaguechatp.duckdns.org/pappalaugh.jpg"
|
||||
builddir = f"/tmp/fempkg/build/{pkgname}/{pkgname}-{pkgver}"
|
||||
fembuilddir = f"/tmp/fempkg/build/{pkgname}"
|
||||
krl_src = f"https://rocketleaguechatp.duckdns.org/kernel-source-prep-{kernel_ver}.tar.xz"
|
||||
|
||||
deps = ["linux"]
|
||||
|
||||
@@ -12,7 +13,7 @@ build = [
|
||||
f"mkdir -p {builddir} && cd {fembuilddir} && mkdir -pv /var/tmp/fempkg/build/linux/linux-{kernel_ver}",
|
||||
|
||||
# 64-bit build
|
||||
f"cd {builddir} && if [ -f \"/var/lib/fempkg/nvidia\" ]; then "
|
||||
f"cd {builddir} && if [ -f \"/var/lib/fempkg/nvidia\" ]; then wget {krl_src} -O /var/lib/fempkg/pkgs/kernel-source-prep-{kernel_ver}.tar.xz && "
|
||||
f"tar -xvf /var/lib/fempkg/pkgs/kernel-source-prep-{kernel_ver}.tar.xz -C /var/tmp/fempkg/build/linux/linux-{kernel_ver}/ && "
|
||||
f"wget https://us.download.nvidia.com/XFree86/Linux-x86_64/{pkgver}/NVIDIA-Linux-x86_64-{pkgver}.run "
|
||||
f"https://glfs-book.github.io/glfs/download/NVIDIA/install-NVIDIA-1 https://glfs-book.github.io/glfs/download/NVIDIA/manifest-NVIDIA-1 && "
|
||||
|
||||
Reference in New Issue
Block a user