@xenhat thanks for the patch but i dont use the files in the official repo because they why made for Ubuntu. Ubuntu dosent install the binary in the same location as arch. That why i curl the file from my gentoo ebuild. I need to find the why to use the files that i include in the snapshot. For now it work some other time i will try to remove the need to curl the files
Search Criteria
Package Details: lenovolegionlinux-git r255.e0a361f-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/lenovolegionlinux-git.git (read-only, click to copy) |
---|---|
Package Base: | lenovolegionlinux-git |
Description: | LenovoLegionLinux (LLL) brings additional drivers and tools for Lenovo Legion series laptops to Linux. PLEASE READ THE REPO BEFORE INSTALL THIS PACKAGE!!! |
Upstream URL: | https://github.com/johnfanv2/LenovoLegionLinux |
Licenses: | GPL |
Conflicts: | legion-fan-utils-linux-git |
Submitter: | MrDuartePT |
Maintainer: | MrDuartePT (XenHat) |
Last Packager: | MrDuartePT |
Votes: | 10 |
Popularity: | 0.97 |
First Submitted: | 2023-03-14 18:40 (UTC) |
Last Updated: | 2024-11-23 10:30 (UTC) |
Dependencies (12)
- polkit (polkit-gitAUR, polkit-consolekitAUR)
- python-argcomplete
- python-darkdetect
- python-pyqt6
- python-wheel
- git (git-gitAUR, git-glAUR) (make)
- libinih (libinih-gitAUR) (make)
- python-build (make)
- python-installer (python-installer-gitAUR) (make)
- python-setuptools (make)
- python-yaml (python-yaml-gitAUR) (make)
- lenovolegionlinux-dkms-gitAUR (optional) – DKMS module (install if your distro dosent patch in the kernel our you are not sure to haveit)
Required by (1)
Sources (1)
MrDuartePT commented on 2023-07-12 08:57 (UTC) (edited on 2023-07-12 08:58 (UTC) by MrDuartePT)
XenHat commented on 2023-07-11 20:38 (UTC) (edited on 2023-07-12 00:40 (UTC) by XenHat)
There's a mistake in the new PKGBuild. I've produced a patch since the package is still broken after several hours:
diff --git a/PKGBUILD b/PKGBUILD
index 08c62fa..a3778e3 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -32,8 +32,12 @@ conflicts=(
legion-fan-utils-linux-git
)
-source=("${_pkgname}::git+https://github.com/johnfanv2/LenovoLegionLinux")
-sha256sums=('SKIP')
+source=("${_pkgname}::git+https://github.com/johnfanv2/LenovoLegionLinux"
+ "legion_cli.policy"
+ "legion_gui.desktop")
+sha256sums=('SKIP'
+ '8e0c262868b5de17ca384b200a0080b2f03e284422ab06ee408310d038c9cdf5'
+ '3af20ff4678b603f98e71b1fb540553dd751509d6ea5c1158462aebe532b8189')
pkgver() {
cd "${_pkgname}"
MrDuartePT commented on 2023-06-25 15:09 (UTC) (edited on 2023-06-25 15:13 (UTC) by MrDuartePT)
@Coelacanthus change to curl made
Coelacanthus commented on 2023-06-25 15:05 (UTC) (edited on 2023-06-25 15:07 (UTC) by Coelacanthus)
Missing dependency wget
.
==> Starting package()...
/startdir/PKGBUILD: line 67: wget: command not found
==> ERROR: A failure occurred in package().
Aborting...
==> ERROR: Build failed, check /var/lib/aurbuild/x86_64/coelacanthus/build
It's better to use curl, which is dependency of base, so every Arch should have it.
MrDuartePT commented on 2023-05-14 13:57 (UTC)
@ptr1337 thanks for the patch yha you are right i forget to clean some think in the package() part and add setuptools
ptr1337 commented on 2023-04-30 08:54 (UTC)
Hi,
Thanks for updating the package. python-setuptools is missing as depend:
==> Starting build()...
Traceback (most recent call last):
File "/tmp/makepkg/lenovolegionlinux-git/src/lenovolegionlinux/python/legion_linux/setup.py", line 3, in <module>
import setuptools
ModuleNotFoundError: No module named 'setuptools'
==> ERROR: A failure occurred in build().
Aborting...
Also why is line 41 required? https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=lenovolegionlinux-git#n41 This should be not required at all, since if the kernel version gets updated, the path will still exist but not used.
Here a little patch to cleanup some stuff and adding the required dependecy:
diff --git a/PKGBUILD b/PKGBUILD
index 05b6ea5..6c08a7b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,5 +1,7 @@
# Maintainer: MrDuartePT <gonegrier.duarte@gmail.com>
# Maintainer: johnfanv2 <https://github.com/johnfanv2>
+
+
_pkgname=lenovolegionlinux
pkgname=${_pkgname}-git
pkgver=r255.84de130
@@ -8,15 +10,17 @@ pkgdesc="LenovoLegionLinux (LLL) brings additional drivers and tools for Lenovo
arch=("x86_64")
url="https://github.com/johnfanv2/LenovoLegionLinux"
diff --git a/PKGBUILD b/PKGBUILD
index 05b6ea5..6c08a7b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,5 +1,7 @@
# Maintainer: MrDuartePT <gonegrier.duarte@gmail.com>
# Maintainer: johnfanv2 <https://github.com/johnfanv2>
+
+
_pkgname=lenovolegionlinux
pkgname=${_pkgname}-git
pkgver=r255.84de130
@@ -8,15 +10,17 @@ pkgdesc="LenovoLegionLinux (LLL) brings additional drivers and tools for Lenovo
arch=("x86_64")
url="https://github.com/johnfanv2/LenovoLegionLinux"
license=('GPL')
-makedepends=("git"
- "python-build"
- "python-pyqt5"
- "python-yaml"
- "python-argcomplete"
+makedepends=(
+ git
+ python-build
+ python-pyqt5
+ python-yaml
+ python-argcomplete
+ python-setuptools
)
optdepends=(
- "legion-fan-utils-linux-git: Systemd service that will apply a given profile
- lenovolegionlinux-dkms-git: DKMS module (install if your distro dosent patch in the kernel our you are not sure to haveit)"
+ "legion-fan-utils-linux-git: Systemd service that will apply a given profile"
+ "lenovolegionlinux-dkms-git: DKMS module"
)
source=("${_pkgname}::git+https://github.com/johnfanv2/LenovoLegionLinux")
sha256sums=('SKIP')
@@ -33,20 +37,20 @@ prepare() {
}
build() {
- cd "${srcdir}/${_pkgname}/python/legion_linux"
- python setup.py build
-
+ cd "${srcdir}/${_pkgname}/python/legion_linux"
+ python setup.py build
}
+
package() {
- mkdir -p $pkgdir/usr/{local,lib/modules/$(uname -r)/kernel/drivers/platform/x86/}
- mkdir -p $pkgdir/usr/share/{applications/,icons/,polkit-1/actions/}
- mkdir -p $pkgdir/etc/pacman.d/hooks
- cd "${srcdir}/${_pkgname}/python/legion_linux"
- install -Dm775 legion_gui.desktop "${pkgdir}/usr/share/applications/"
- install -Dm644 legion_logo.png "${pkgdir}/usr/share/pixmaps/legion_logo.png"
- install -Dm644 legion_gui.policy "${pkgdir}/usr/share/polkit-1/actions/"
+
+ mkdir -p $pkgdir/usr/share/{applications/,icons/,polkit-1/actions/}
+ mkdir -p $pkgdir/etc/pacman.d/hooks
+ cd "${srcdir}/${_pkgname}/python/legion_linux"
+ install -Dm775 legion_gui.desktop "${pkgdir}/usr/share/applications/"
+ install -Dm644 legion_logo.png "${pkgdir}/usr/share/pixmaps/legion_logo.png"
+ install -Dm644 legion_gui.policy "${pkgdir}/usr/share/polkit-1/actions/"
- cd "${srcdir}/${_pkgname}/python/legion_linux"
- python setup.py install --root="$pkgdir" --optimize=1
- mv $pkgdir/usr/bin $pkgdir/usr/local/ #move from /usr/bin to /usr/local/bin (for legion_gui.desktop to work)
+ cd "${srcdir}/${_pkgname}/python/legion_linux"
+ python setup.py install --root="$pkgdir" --optimize=1
+ mv $pkgdir/usr/bin $pkgdir/usr/local/ #move from /usr/bin to /usr/local/bin (for legion_gui.desktop to work)
}
MrDuartePT commented on 2023-04-29 22:08 (UTC) (edited on 2023-04-29 22:08 (UTC) by MrDuartePT)
if you disto dosent patch the kernel with the module pls install lenovolegionlinux-dkms-git NOTE: For now only CachyOS does
MrDuartePT commented on 2023-04-29 22:06 (UTC)
@randomarch1867 it fix now
Pinned Comments
MrDuartePT commented on 2023-04-29 22:08 (UTC) (edited on 2023-04-29 22:08 (UTC) by MrDuartePT)
if you disto dosent patch the kernel with the module pls install lenovolegionlinux-dkms-git NOTE: For now only CachyOS does
MrDuartePT commented on 2023-04-28 00:09 (UTC) (edited on 2023-04-29 22:09 (UTC) by MrDuartePT)
@ptr1337 is done Now dkms package is: lenovolegionlinux-dkms-git