diff --git a/packages/l/lenovo-legion-linux/package.yml b/packages/l/lenovo-legion-linux/package.yml index 4fa5c681d29d..bffb9a45be30 100644 --- a/packages/l/lenovo-legion-linux/package.yml +++ b/packages/l/lenovo-legion-linux/package.yml @@ -1,10 +1,10 @@ # yaml-language-server: $schema=/usr/share/ypkg/schema/schema.json name : lenovo-legion-linux version : 0.0.20 -release : 34 +release : 35 source : - - https://github.com/johnfanv2/LenovoLegionLinux/archive/refs/tags/v0.0.20.tar.gz : c9974cfde03d8fd73de0a09628189f8fd9341037f10e28649b2fe5d1ec68bb2e -extract : false + # Waiting for upstream to tag a new release + - git|https://github.com/johnfanv2/LenovoLegionLinux.git : 7c19579d13ce686cf1e237699b9a78e80d03c977 homepage : https://github.com/johnfanv2/LenovoLegionLinux license : GPL-2.0-or-later component : @@ -45,22 +45,23 @@ rundeps : - pyyaml setup : | # Prep build dirs for each kernel version - mkdir current lts - tar --strip-components=1 -xf $sources/v*.tar.gz -C current - tar --strip-components=1 -xf $sources/v*.tar.gz -C lts + cp -r $PKG_BUILD_DIR/LenovoLegionLinux.git $PKG_BUILD_DIR/current + cp -r $PKG_BUILD_DIR/LenovoLegionLinux.git $PKG_BUILD_DIR/lts - sed -i 's|version = _VERSION|version = %version%|' */python/legion_linux/setup.cfg + sed -i 's|version = _VERSION|version = %version%|' $PKG_BUILD_DIR/*/python/legion_linux/setup.cfg build : | - %make -C current/kernel_module KERNELVERSION=%kernel_version_current% KSRC=%libdir%/modules/%kernel_version_current%/build - %make -C lts/kernel_module KERNELVERSION=%kernel_version_lts% KSRC=%libdir%/modules/%kernel_version_lts%/build + %make -C $PKG_BUILD_DIR/current/kernel_module KERNELVERSION=%kernel_version_current% KSRC=%libdir%/modules/%kernel_version_current%/build + %make -C $PKG_BUILD_DIR/lts/kernel_module KERNELVERSION=%kernel_version_lts% KSRC=%libdir%/modules/%kernel_version_lts%/build - cd current/python/legion_linux - python3 -m build --wheel --no-isolation + pushd python/legion_linux + python3 -m build --wheel --no-isolation + popd install : | - install -Dm00644 current/kernel_module/legion-laptop.ko -t $installdir/%libdir%/modules/%kernel_version_current%/extra/drivers/platform/x86/ - install -Dm00644 lts/kernel_module/legion-laptop.ko -t $installdir/%libdir%/modules/%kernel_version_lts%/extra/drivers/platform/x86/ + install -Dm00644 $PKG_BUILD_DIR/current/kernel_module/legion-laptop.ko -t $installdir/%libdir%/modules/%kernel_version_current%/extra/drivers/platform/x86/ + install -Dm00644 $PKG_BUILD_DIR/lts/kernel_module/legion-laptop.ko -t $installdir/%libdir%/modules/%kernel_version_lts%/extra/drivers/platform/x86/ find "$installdir" -name '*.ko' -exec strip --strip-debug {} \; -exec zstd {} \; -exec rm -v {} \; - cd current/python/legion_linux - python3 -m installer --destdir=%installroot% dist/*.whl + pushd python/legion_linux + python3 -m installer --destdir=%installroot% dist/*.whl + popd diff --git a/packages/l/lenovo-legion-linux/pspec_x86_64.xml b/packages/l/lenovo-legion-linux/pspec_x86_64.xml index df53906b6592..075ee0a363dc 100644 --- a/packages/l/lenovo-legion-linux/pspec_x86_64.xml +++ b/packages/l/lenovo-legion-linux/pspec_x86_64.xml @@ -3,8 +3,8 @@ lenovo-legion-linux https://github.com/johnfanv2/LenovoLegionLinux - Troy Harvey - harvey@getsol.us + Gavin Zhao + me@gzgz.dev GPL-2.0-or-later kernel.drivers @@ -47,6 +47,7 @@ /usr/share/legion_linux/balanced-battery.yaml /usr/share/legion_linux/balanced-performance-ac.yaml /usr/share/legion_linux/balanced-performance-battery.yaml + /usr/share/legion_linux/extreme-ac.yaml /usr/share/legion_linux/legiond.ini /usr/share/legion_linux/performance-ac.yaml /usr/share/legion_linux/performance-battery.yaml @@ -66,7 +67,7 @@ kernel.drivers - lenovo-legion-linux + lenovo-legion-linux /usr/lib64/modules/7.0.9-341.current/extra/drivers/platform/x86/legion-laptop.ko.zst @@ -78,19 +79,19 @@ Lenovo Legion Linux (LLL) brings additional drivers and tools for Lenovo Legion series laptops to Linux. It allows you to control features like the fan curve, power mode, power limits, rapid charging, and more. - lenovo-legion-linux + lenovo-legion-linux /usr/lib64/modules/6.18.32-291.lts/extra/drivers/platform/x86/legion-laptop.ko.zst - - 2026-05-18 + + 2026-05-22 0.0.20 Packaging update - Troy Harvey - harvey@getsol.us + Gavin Zhao + me@gzgz.dev \ No newline at end of file