From c6f105cb4c23b935aa62991dde79e46da08d7843 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A7alo=20Negrier=20Duarte?= Date: Fri, 27 Dec 2024 12:14:30 +0000 Subject: [PATCH 01/17] lenovolegionlinux-dkms-git: add package MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Gonçalo Negrier Duarte --- packages/lenovolegionlinux-dkms-git/.SRCINFO | 21 ++++++++ .../lenovolegionlinux-dkms-git.pacscript | 53 +++++++++++++++++++ packages/lenovolegionlinux-git/.SRCINFO | 28 ++++++++++ 3 files changed, 102 insertions(+) create mode 100644 packages/lenovolegionlinux-dkms-git/.SRCINFO create mode 100644 packages/lenovolegionlinux-dkms-git/lenovolegionlinux-dkms-git.pacscript create mode 100644 packages/lenovolegionlinux-git/.SRCINFO diff --git a/packages/lenovolegionlinux-dkms-git/.SRCINFO b/packages/lenovolegionlinux-dkms-git/.SRCINFO new file mode 100644 index 0000000000..7c57abf027 --- /dev/null +++ b/packages/lenovolegionlinux-dkms-git/.SRCINFO @@ -0,0 +1,21 @@ +pkgbase = lenovolegionlinux-dkms-git + pkgdesc = LenovoLegionLinux (LLL) DKMS module + pkgver = 1.c1e9b55 + pkgrel = 0 + url = https://github.com/johnfanv2/LenovoLegionLinux + install = lenovolegionlinux.install + arch = x86_64 + license = GPL-2.0-only + makedepends = git + makedepends = lm-sensors + makedepends = i2c-tools + makedepends = dmidecode + depends = dkms + pacdep = lenovolegionlinux-git + options = !makeflags + options = !buildflags + options = !strip + source = lenovolegionlinux::git+https://github.com/johnfanv2/LenovoLegionLinux + sha256sums = SKIP + +pkgname = lenovolegionlinux-dkms-git diff --git a/packages/lenovolegionlinux-dkms-git/lenovolegionlinux-dkms-git.pacscript b/packages/lenovolegionlinux-dkms-git/lenovolegionlinux-dkms-git.pacscript new file mode 100644 index 0000000000..78197a8184 --- /dev/null +++ b/packages/lenovolegionlinux-dkms-git/lenovolegionlinux-dkms-git.pacscript @@ -0,0 +1,53 @@ +_pkgname="lenovolegionlinux" +pkgname="${_pkgname}-dkms-git" +pkgver="1.c1e9b55" +pkgdesc="LenovoLegionLinux (LLL) DKMS module" +arch=("amd64") +url='https://github.com/johnfanv2/LenovoLegionLinux' +maintainer=("MrDuartePT ") +license=('GPL-2.0-only') + +makedepends=( + "git" + "lm-sensors" + "i2c-tools" + "dmidecode" +) + +depends=("dkms") + +pacdep=("${_pkgname}-git") + +replaces=("${_pkgname}-dkms") + +source=("${_pkgname}::git+https://github.com/johnfanv2/LenovoLegionLinux") +sha256sums=('SKIP') + +package() { + cd "${srcdir}/${_pkgname}/kernel_module/" + install -Dm644 dkms.conf "${pkgdir}"/usr/src/"${_pkgname}"-1.0.0/dkms.conf + cp -r {issue-warning.sh,legion-laptop-unused-snippets.c,legion-laptop.c,Makefile} "${pkgdir}"/usr/src/"${_pkgname}"-1.0.0/ + + cd "${srcdir}/${_pkgname}/deploy/" + install -Dm644 LenovoLegionLinux.hook "${pkgdir}"/etc/pacman.d/hooks/LenovoLegionLinux.hook + install -Dm775 LenovoLegionLinux "${pkgdir}"/usr/bin/LenovoLegionLinux +} + +post_install() { + rmmod legion-laptop.ko #unload old module + echo Installation Finished! + echo Reboot the system or run modprobe legion-laptop to load the module! +} + +post_upgrade() { + post_install "$1" +} + +post_remove() { + rmmod legion-laptop.ko #unload old module + echo Uninstall finished. + echo Reboot the system. + RED='\033[0;31m' + BOLD=$(tput bold) + echo -e "${RED} ${BOLD} If you have a 2022 or 2023 model, please help testing the new features '\e]8;;https://github.com/johnfanv2/LenovoLegionLinux/issues/46\ahere\e]8;;\a'" +} diff --git a/packages/lenovolegionlinux-git/.SRCINFO b/packages/lenovolegionlinux-git/.SRCINFO new file mode 100644 index 0000000000..9f5df4caec --- /dev/null +++ b/packages/lenovolegionlinux-git/.SRCINFO @@ -0,0 +1,28 @@ +pkgbase = lenovolegionlinux-git + pkgdesc = LenovoLegionLinux (LLL) brings additional drivers and tools for Lenovo Legion series laptops to Linux. PLEASE READ THE REPO BEFORE INSTALL THIS PACKAGE!!! + pkgver = r1.c1e9b55 + pkgrel = 0 + url = https://github.com/johnfanv2/LenovoLegionLinux + install = lenovolegionlinux.install + arch = x86_64 + license = GPL + depends = python3-pyqt6 + depends = python3-argcomplete + depends = polkitd + depends = python3-darkdetect + makedepends = git + makedepends = python3-build + makedepends = python3-installer + makedepends = python3-setuptools + makedepends = python3-yaml + makedepends = libinih-dev + makedepends = python3-wheel + replaces = lenovolegionlinux + optdepends = lenovolegionlinux-dkms-git: DKMS module (install if your distro dosent patch in the kernel our you are not sure to haveit) + options = !makeflags + options = !buildflags + options = !strip + source = lenovolegionlinux::git+https://github.com/johnfanv2/LenovoLegionLinux + sha256sums = SKIP + +pkgname = lenovolegionlinux-git From 6f4707ef8520fe91a946e13a89cce0fae4f84172 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A7alo=20Negrier=20Duarte?= Date: Fri, 27 Dec 2024 12:14:06 +0000 Subject: [PATCH 02/17] python3-darkdetect: add package MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Gonçalo Negrier Duarte --- packages/python3-darkdetect/.SRCINFO | 17 +++++++++ .../python3-darkdetect.pacscript | 35 +++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 packages/python3-darkdetect/.SRCINFO create mode 100644 packages/python3-darkdetect/python3-darkdetect.pacscript diff --git a/packages/python3-darkdetect/.SRCINFO b/packages/python3-darkdetect/.SRCINFO new file mode 100644 index 0000000000..d66bee97b5 --- /dev/null +++ b/packages/python3-darkdetect/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = python-darkdetect +pkgdesc = Detect OS Dark Mode from Python +pkgver = 0.8.0 +pkgrel = 4 +url = https://github.com/albertosottile/darkdetect +arch = any +license = BSD-1-Clause +makedepends = git +makedepends = python3-build +makedepends = python3-installer +makedepends = python3-wheel +makedepends = python3-setuptools +depends = python3 +source = https://github.com/albertosottile/darkdetect/archive/refs/tags/v${pkgver}.tar.gz +sha256sums=('SKIP') + +pkgname = python-darkdetect diff --git a/packages/python3-darkdetect/python3-darkdetect.pacscript b/packages/python3-darkdetect/python3-darkdetect.pacscript new file mode 100644 index 0000000000..54f2dc6f33 --- /dev/null +++ b/packages/python3-darkdetect/python3-darkdetect.pacscript @@ -0,0 +1,35 @@ +_pkgname="darkdetect" +pkgname="python3-darkdetect" +pkgver="0.8.0" +pkgdesc='Detect OS Dark Mode from Python' +arch=('any') +url='https://github.com/albertosottile/darkdetect' +maintainer=("MrDuartePT ") +license=('BSD-1-Clause') + +depends=('python3') + +makedepends=( + 'git' + 'python3-build' + 'python3-installer' + 'python3-wheel' + 'python3-setuptools' +) + +source=("https://github.com/albertosottile/darkdetect/archive/refs/tags/v${pkgver}.tar.gz") +sha256sums=('SKIP') + +build() { + cd "${_pkgname}-${pkgver}" + + python3 -m build --wheel --no-isolation +} + +package() { + cd "${_pkgname}-${pkgver}" + + python3 -m installer --destdir="${pkgdir}" dist/*.whl + + install -vDm644 -t "${pkgdir}/usr/share/licenses/${pkgname}" LICENSE +} From 266e06b6561206d3407c06981016aa6a06081885 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A7alo=20Negrier=20Duarte?= Date: Fri, 27 Dec 2024 12:14:37 +0000 Subject: [PATCH 03/17] lenovolegionlinux-git: add package MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Gonçalo Negrier Duarte --- packages/lenovolegionlinux-git/.SRCINFO | 11 +-- .../lenovolegionlinux-git.pacscript | 75 +++++++++++++++++++ 2 files changed, 81 insertions(+), 5 deletions(-) create mode 100644 packages/lenovolegionlinux-git/lenovolegionlinux-git.pacscript diff --git a/packages/lenovolegionlinux-git/.SRCINFO b/packages/lenovolegionlinux-git/.SRCINFO index 9f5df4caec..267591631c 100644 --- a/packages/lenovolegionlinux-git/.SRCINFO +++ b/packages/lenovolegionlinux-git/.SRCINFO @@ -1,20 +1,21 @@ pkgbase = lenovolegionlinux-git pkgdesc = LenovoLegionLinux (LLL) brings additional drivers and tools for Lenovo Legion series laptops to Linux. PLEASE READ THE REPO BEFORE INSTALL THIS PACKAGE!!! - pkgver = r1.c1e9b55 + pkgver = 1.c1e9b55 pkgrel = 0 url = https://github.com/johnfanv2/LenovoLegionLinux install = lenovolegionlinux.install arch = x86_64 - license = GPL - depends = python3-pyqt6 + license = GPL-2.0-only + depends = python3 depends = python3-argcomplete + depends = python3-yaml + depends = python3-pyqt6 depends = polkitd - depends = python3-darkdetect + pacdep = python3-darkdetect makedepends = git makedepends = python3-build makedepends = python3-installer makedepends = python3-setuptools - makedepends = python3-yaml makedepends = libinih-dev makedepends = python3-wheel replaces = lenovolegionlinux diff --git a/packages/lenovolegionlinux-git/lenovolegionlinux-git.pacscript b/packages/lenovolegionlinux-git/lenovolegionlinux-git.pacscript new file mode 100644 index 0000000000..929258f460 --- /dev/null +++ b/packages/lenovolegionlinux-git/lenovolegionlinux-git.pacscript @@ -0,0 +1,75 @@ +_pkgname="lenovolegionlinux" +pkgname="${_pkgname}-git" +pkgver="1.c1e9b55" +pkgdesc="LenovoLegionLinux (LLL) brings additional drivers and tools for Lenovo Legion series laptops to Linux. PLEASE READ THE REPO BEFORE INSTALL THIS PACKAGE!!!" +arch=("amd64") +url='https://github.com/johnfanv2/LenovoLegionLinux' +maintainer=("MrDuartePT ") +license=('GPL-2.0-only') + +depends=( + python3 + python3-argcomplete + python3-yaml + python3-pyqt6 + polkitd +) + +pacdep=(python3-darkdetect) + +makedepends=( + git + python3-build + python3-installer + python3-setuptools + python3-wheel + libinih-dev +) + +optdepends=("lenovolegionlinux-dkms-git: DKMS module") + +replaces=("${_pkgname}") + +source=( + "${_pkgname}::git+https://github.com/johnfanv2/LenovoLegionLinux" + "https://raw.githubusercontent.com/benhoyt/inih/refs/heads/master/ini.c" +) +sha256sums=('SKIP') + +prepare() { + cd "${_pkgname}" + sed -i "s/version = _VERSION/version = 1.0.0/g" "${srcdir}/${_pkgname}/python/legion_linux/setup.cfg" +} + +build() { + cd "${srcdir}/${_pkgname}/python/legion_linux" + python3 -m build --wheel --no-isolation + + # Compile legiond daemon + cd legion_linux/extra/service/legiond + cp "${srcdir}/ini.c" ./ + sed -i "s/SOURCE1 = \$(TARGET1).c modules\/\*\.c/SOURCE1 = \$(TARGET1).c ini.c modules\/\*\.c/g" Makefile + make +} + +package() { + mkdir -p "${pkgdir}/etc/systemd/system" + + cd "${srcdir}/${_pkgname}/python/legion_linux" + python3 -m installer --destdir="${pkgdir}" dist/*.whl + + # Systemd service + cd "${srcdir}/${_pkgname}/extra" + install -Dm664 service/*.service "${pkgdir}/etc/systemd/system" + install -Dm664 service/*.timer "${pkgdir}/etc/systemd/system" + + # legiond daemon + install -Dm775 service/legiond/legiond "${pkgdir}/usr/bin" + install -Dm775 service/legiond/legiond-ctl "${pkgdir}/usr/bin" +} + +post_install() { + echo "Default config files are present in /usr/share/legion_linux" + echo "Frist install: Pls copy folder /usr/share/legion_linux to /etc/legion_linux" + echo "Is also provided acpi exemple on /usr/share/legion_linux/acpi" +} From 9069b29b6e7afbd70044a67acdac290ebd161f71 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 31 Dec 2024 00:42:12 +0000 Subject: [PATCH 04/17] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- packagelist | 3 + packages/lenovolegionlinux-dkms-git/.SRCINFO | 16 ++--- packages/lenovolegionlinux-git/.SRCINFO | 24 ++++---- packages/python3-darkdetect/.SRCINFO | 32 +++++----- srclist | 62 ++++++++++++++++++++ 5 files changed, 97 insertions(+), 40 deletions(-) diff --git a/packagelist b/packagelist index 58a317d62a..83111cea9d 100644 --- a/packagelist +++ b/packagelist @@ -265,6 +265,8 @@ lazygit lbry-deb legcord-deb lemonbar-xft-git +lenovolegionlinux-dkms-git +lenovolegionlinux-git lens lf-bin libaquamarine-bin @@ -449,6 +451,7 @@ protonvpn-nm-lib pulsar-deb pycharm-community-bin python3-anyascii +python3-darkdetect python3-flit-core python3-fvs python3-gbinder-deb diff --git a/packages/lenovolegionlinux-dkms-git/.SRCINFO b/packages/lenovolegionlinux-dkms-git/.SRCINFO index 7c57abf027..103b8c79e9 100644 --- a/packages/lenovolegionlinux-dkms-git/.SRCINFO +++ b/packages/lenovolegionlinux-dkms-git/.SRCINFO @@ -1,20 +1,16 @@ pkgbase = lenovolegionlinux-dkms-git - pkgdesc = LenovoLegionLinux (LLL) DKMS module pkgver = 1.c1e9b55 - pkgrel = 0 + pkgdesc = LenovoLegionLinux (LLL) DKMS module url = https://github.com/johnfanv2/LenovoLegionLinux - install = lenovolegionlinux.install - arch = x86_64 - license = GPL-2.0-only + arch = amd64 + depends = dkms makedepends = git makedepends = lm-sensors makedepends = i2c-tools makedepends = dmidecode - depends = dkms - pacdep = lenovolegionlinux-git - options = !makeflags - options = !buildflags - options = !strip + replaces = lenovolegionlinux-dkms + license = GPL-2.0-only + maintainer = MrDuartePT source = lenovolegionlinux::git+https://github.com/johnfanv2/LenovoLegionLinux sha256sums = SKIP diff --git a/packages/lenovolegionlinux-git/.SRCINFO b/packages/lenovolegionlinux-git/.SRCINFO index 267591631c..785ed5b742 100644 --- a/packages/lenovolegionlinux-git/.SRCINFO +++ b/packages/lenovolegionlinux-git/.SRCINFO @@ -1,29 +1,25 @@ pkgbase = lenovolegionlinux-git - pkgdesc = LenovoLegionLinux (LLL) brings additional drivers and tools for Lenovo Legion series laptops to Linux. PLEASE READ THE REPO BEFORE INSTALL THIS PACKAGE!!! pkgver = 1.c1e9b55 - pkgrel = 0 + pkgdesc = LenovoLegionLinux (LLL) brings additional drivers and tools for Lenovo Legion series laptops to Linux. PLEASE READ THE REPO BEFORE INSTALL THIS PACKAGE!!! url = https://github.com/johnfanv2/LenovoLegionLinux - install = lenovolegionlinux.install - arch = x86_64 - license = GPL-2.0-only + arch = amd64 depends = python3 depends = python3-argcomplete depends = python3-yaml - depends = python3-pyqt6 + depends = python3-pyqt6 depends = polkitd - pacdep = python3-darkdetect makedepends = git makedepends = python3-build makedepends = python3-installer - makedepends = python3-setuptools - makedepends = libinih-dev - makedepends = python3-wheel + makedepends = python3-setuptools + makedepends = python3-wheel + makedepends = libinih-dev + optdepends = lenovolegionlinux-dkms-git: DKMS module replaces = lenovolegionlinux - optdepends = lenovolegionlinux-dkms-git: DKMS module (install if your distro dosent patch in the kernel our you are not sure to haveit) - options = !makeflags - options = !buildflags - options = !strip + license = GPL-2.0-only + maintainer = MrDuartePT source = lenovolegionlinux::git+https://github.com/johnfanv2/LenovoLegionLinux + source = https://raw.githubusercontent.com/benhoyt/inih/refs/heads/master/ini.c sha256sums = SKIP pkgname = lenovolegionlinux-git diff --git a/packages/python3-darkdetect/.SRCINFO b/packages/python3-darkdetect/.SRCINFO index d66bee97b5..f17ed4555c 100644 --- a/packages/python3-darkdetect/.SRCINFO +++ b/packages/python3-darkdetect/.SRCINFO @@ -1,17 +1,17 @@ -pkgbase = python-darkdetect -pkgdesc = Detect OS Dark Mode from Python -pkgver = 0.8.0 -pkgrel = 4 -url = https://github.com/albertosottile/darkdetect -arch = any -license = BSD-1-Clause -makedepends = git -makedepends = python3-build -makedepends = python3-installer -makedepends = python3-wheel -makedepends = python3-setuptools -depends = python3 -source = https://github.com/albertosottile/darkdetect/archive/refs/tags/v${pkgver}.tar.gz -sha256sums=('SKIP') +pkgbase = python3-darkdetect + pkgver = 0.8.0 + pkgdesc = Detect OS Dark Mode from Python + url = https://github.com/albertosottile/darkdetect + arch = any + depends = python3 + makedepends = git + makedepends = python3-build + makedepends = python3-installer + makedepends = python3-wheel + makedepends = python3-setuptools + license = BSD-1-Clause + maintainer = MrDuartePT + source = https://github.com/albertosottile/darkdetect/archive/refs/tags/v0.8.0.tar.gz + sha256sums = SKIP -pkgname = python-darkdetect +pkgname = python3-darkdetect diff --git a/srclist b/srclist index 797b934e67..6a19e7fe75 100644 --- a/srclist +++ b/srclist @@ -5460,6 +5460,50 @@ pkgbase = lemonbar-xft-git pkgname = lemonbar-xft-git --- +pkgbase = lenovolegionlinux-dkms-git + pkgver = 1.c1e9b55 + pkgdesc = LenovoLegionLinux (LLL) DKMS module + url = https://github.com/johnfanv2/LenovoLegionLinux + arch = amd64 + depends = dkms + makedepends = git + makedepends = lm-sensors + makedepends = i2c-tools + makedepends = dmidecode + replaces = lenovolegionlinux-dkms + license = GPL-2.0-only + maintainer = MrDuartePT + source = lenovolegionlinux::git+https://github.com/johnfanv2/LenovoLegionLinux + sha256sums = SKIP + +pkgname = lenovolegionlinux-dkms-git +--- +pkgbase = lenovolegionlinux-git + pkgver = 1.c1e9b55 + pkgdesc = LenovoLegionLinux (LLL) brings additional drivers and tools for Lenovo Legion series laptops to Linux. PLEASE READ THE REPO BEFORE INSTALL THIS PACKAGE!!! + url = https://github.com/johnfanv2/LenovoLegionLinux + arch = amd64 + depends = python3 + depends = python3-argcomplete + depends = python3-yaml + depends = python3-pyqt6 + depends = polkitd + makedepends = git + makedepends = python3-build + makedepends = python3-installer + makedepends = python3-setuptools + makedepends = python3-wheel + makedepends = libinih-dev + optdepends = lenovolegionlinux-dkms-git: DKMS module + replaces = lenovolegionlinux + license = GPL-2.0-only + maintainer = MrDuartePT + source = lenovolegionlinux::git+https://github.com/johnfanv2/LenovoLegionLinux + source = https://raw.githubusercontent.com/benhoyt/inih/refs/heads/master/ini.c + sha256sums = SKIP + +pkgname = lenovolegionlinux-git +--- pkgbase = lens pkgver = 1.0.2 pkgdesc = LENS is a spectral dynamics processor with unbelievable punch and clarity. @@ -9039,6 +9083,24 @@ pkgbase = python3-anyascii pkgname = python3-anyascii --- +pkgbase = python3-darkdetect + pkgver = 0.8.0 + pkgdesc = Detect OS Dark Mode from Python + url = https://github.com/albertosottile/darkdetect + arch = any + depends = python3 + makedepends = git + makedepends = python3-build + makedepends = python3-installer + makedepends = python3-wheel + makedepends = python3-setuptools + license = BSD-1-Clause + maintainer = MrDuartePT + source = https://github.com/albertosottile/darkdetect/archive/refs/tags/v0.8.0.tar.gz + sha256sums = SKIP + +pkgname = python3-darkdetect +--- pkgbase = python3-flit-core pkgver = 3.9.0 pkgdesc = A PEP 517 build backend for packages using Flit From 977316970266d6465211b160feb635f0e043e1e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A7alo=20Negrier=20Duarte?= Date: Tue, 31 Dec 2024 11:23:44 +0000 Subject: [PATCH 05/17] lenovolegionlinux-dkms-git: removes some spaces --- .../lenovolegionlinux-dkms-git.pacscript | 5 ----- 1 file changed, 5 deletions(-) diff --git a/packages/lenovolegionlinux-dkms-git/lenovolegionlinux-dkms-git.pacscript b/packages/lenovolegionlinux-dkms-git/lenovolegionlinux-dkms-git.pacscript index 78197a8184..dad805cc15 100644 --- a/packages/lenovolegionlinux-dkms-git/lenovolegionlinux-dkms-git.pacscript +++ b/packages/lenovolegionlinux-dkms-git/lenovolegionlinux-dkms-git.pacscript @@ -6,20 +6,15 @@ arch=("amd64") url='https://github.com/johnfanv2/LenovoLegionLinux' maintainer=("MrDuartePT ") license=('GPL-2.0-only') - makedepends=( "git" "lm-sensors" "i2c-tools" "dmidecode" ) - depends=("dkms") - pacdep=("${_pkgname}-git") - replaces=("${_pkgname}-dkms") - source=("${_pkgname}::git+https://github.com/johnfanv2/LenovoLegionLinux") sha256sums=('SKIP') From f09abc94542366bbb4a2b830010f3739f0c47f47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A7alo=20Negrier=20Duarte?= Date: Tue, 31 Dec 2024 11:31:43 +0000 Subject: [PATCH 06/17] lenovolegionlinux-git: add sha256sums MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Gonçalo Negrier Duarte --- packages/lenovolegionlinux-git/.SRCINFO | 3 ++- .../lenovolegionlinux-git.pacscript | 15 ++++++--------- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/packages/lenovolegionlinux-git/.SRCINFO b/packages/lenovolegionlinux-git/.SRCINFO index 785ed5b742..d6c1e63fa5 100644 --- a/packages/lenovolegionlinux-git/.SRCINFO +++ b/packages/lenovolegionlinux-git/.SRCINFO @@ -19,7 +19,8 @@ pkgbase = lenovolegionlinux-git license = GPL-2.0-only maintainer = MrDuartePT source = lenovolegionlinux::git+https://github.com/johnfanv2/LenovoLegionLinux - source = https://raw.githubusercontent.com/benhoyt/inih/refs/heads/master/ini.c + source = https://raw.githubusercontent.com/benhoyt/inih/refs/tags/r58/ini.c sha256sums = SKIP + sha256sums = 217fa78f0380669c91a565f3e414d0a8be0f7a7fdfd1e3839f213e86aa574a95 pkgname = lenovolegionlinux-git diff --git a/packages/lenovolegionlinux-git/lenovolegionlinux-git.pacscript b/packages/lenovolegionlinux-git/lenovolegionlinux-git.pacscript index 929258f460..9e91de130c 100644 --- a/packages/lenovolegionlinux-git/lenovolegionlinux-git.pacscript +++ b/packages/lenovolegionlinux-git/lenovolegionlinux-git.pacscript @@ -6,7 +6,6 @@ arch=("amd64") url='https://github.com/johnfanv2/LenovoLegionLinux' maintainer=("MrDuartePT ") license=('GPL-2.0-only') - depends=( python3 python3-argcomplete @@ -14,9 +13,7 @@ depends=( python3-pyqt6 polkitd ) - pacdep=(python3-darkdetect) - makedepends=( git python3-build @@ -25,16 +22,16 @@ makedepends=( python3-wheel libinih-dev ) - -optdepends=("lenovolegionlinux-dkms-git: DKMS module") - +#optdepends=("lenovolegionlinux-dkms-git: DKMS module") # needs to be fix replaces=("${_pkgname}") - source=( "${_pkgname}::git+https://github.com/johnfanv2/LenovoLegionLinux" - "https://raw.githubusercontent.com/benhoyt/inih/refs/heads/master/ini.c" + "https://raw.githubusercontent.com/benhoyt/inih/refs/tags/r58/ini.c" +) +sha256sums=( + 'SKIP' + '217fa78f0380669c91a565f3e414d0a8be0f7a7fdfd1e3839f213e86aa574a95' ) -sha256sums=('SKIP') prepare() { cd "${_pkgname}" From 608b237706758f8fa1e1ccd6bb706951206608f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A7alo=20Negrier=20Duarte?= Date: Tue, 31 Dec 2024 11:35:31 +0000 Subject: [PATCH 07/17] python3-darkdetect: add sha256sums MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Gonçalo Negrier Duarte --- packages/python3-darkdetect/.SRCINFO | 2 +- packages/python3-darkdetect/python3-darkdetect.pacscript | 8 +------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/packages/python3-darkdetect/.SRCINFO b/packages/python3-darkdetect/.SRCINFO index f17ed4555c..a9e75d4b3e 100644 --- a/packages/python3-darkdetect/.SRCINFO +++ b/packages/python3-darkdetect/.SRCINFO @@ -12,6 +12,6 @@ pkgbase = python3-darkdetect license = BSD-1-Clause maintainer = MrDuartePT source = https://github.com/albertosottile/darkdetect/archive/refs/tags/v0.8.0.tar.gz - sha256sums = SKIP + sha256sums = 100eea1a610bb19610a68b11ff468c13b1c2863d1254c2d5b37d198a1beb3227 pkgname = python3-darkdetect diff --git a/packages/python3-darkdetect/python3-darkdetect.pacscript b/packages/python3-darkdetect/python3-darkdetect.pacscript index 54f2dc6f33..fd3b1c1afe 100644 --- a/packages/python3-darkdetect/python3-darkdetect.pacscript +++ b/packages/python3-darkdetect/python3-darkdetect.pacscript @@ -6,9 +6,7 @@ arch=('any') url='https://github.com/albertosottile/darkdetect' maintainer=("MrDuartePT ") license=('BSD-1-Clause') - depends=('python3') - makedepends=( 'git' 'python3-build' @@ -16,20 +14,16 @@ makedepends=( 'python3-wheel' 'python3-setuptools' ) - source=("https://github.com/albertosottile/darkdetect/archive/refs/tags/v${pkgver}.tar.gz") -sha256sums=('SKIP') +sha256sums=('100eea1a610bb19610a68b11ff468c13b1c2863d1254c2d5b37d198a1beb3227') build() { cd "${_pkgname}-${pkgver}" - python3 -m build --wheel --no-isolation } package() { cd "${_pkgname}-${pkgver}" - python3 -m installer --destdir="${pkgdir}" dist/*.whl - install -vDm644 -t "${pkgdir}/usr/share/licenses/${pkgname}" LICENSE } From 03082ed44c53490c8231905021c7e38a7526b14e Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 31 Dec 2024 11:38:36 +0000 Subject: [PATCH 08/17] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- packages/lenovolegionlinux-git/.SRCINFO | 5 ++--- srclist | 6 +++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/packages/lenovolegionlinux-git/.SRCINFO b/packages/lenovolegionlinux-git/.SRCINFO index d6c1e63fa5..d2a187c1ee 100644 --- a/packages/lenovolegionlinux-git/.SRCINFO +++ b/packages/lenovolegionlinux-git/.SRCINFO @@ -14,13 +14,12 @@ pkgbase = lenovolegionlinux-git makedepends = python3-setuptools makedepends = python3-wheel makedepends = libinih-dev - optdepends = lenovolegionlinux-dkms-git: DKMS module replaces = lenovolegionlinux license = GPL-2.0-only maintainer = MrDuartePT source = lenovolegionlinux::git+https://github.com/johnfanv2/LenovoLegionLinux - source = https://raw.githubusercontent.com/benhoyt/inih/refs/tags/r58/ini.c + source = https://raw.githubusercontent.com/benhoyt/inih/refs/tags/r58/ini.c sha256sums = SKIP - sha256sums = 217fa78f0380669c91a565f3e414d0a8be0f7a7fdfd1e3839f213e86aa574a95 + sha256sums = 217fa78f0380669c91a565f3e414d0a8be0f7a7fdfd1e3839f213e86aa574a95 pkgname = lenovolegionlinux-git diff --git a/srclist b/srclist index 6a19e7fe75..82a235c291 100644 --- a/srclist +++ b/srclist @@ -5494,13 +5494,13 @@ pkgbase = lenovolegionlinux-git makedepends = python3-setuptools makedepends = python3-wheel makedepends = libinih-dev - optdepends = lenovolegionlinux-dkms-git: DKMS module replaces = lenovolegionlinux license = GPL-2.0-only maintainer = MrDuartePT source = lenovolegionlinux::git+https://github.com/johnfanv2/LenovoLegionLinux - source = https://raw.githubusercontent.com/benhoyt/inih/refs/heads/master/ini.c + source = https://raw.githubusercontent.com/benhoyt/inih/refs/tags/r58/ini.c sha256sums = SKIP + sha256sums = 217fa78f0380669c91a565f3e414d0a8be0f7a7fdfd1e3839f213e86aa574a95 pkgname = lenovolegionlinux-git --- @@ -9097,7 +9097,7 @@ pkgbase = python3-darkdetect license = BSD-1-Clause maintainer = MrDuartePT source = https://github.com/albertosottile/darkdetect/archive/refs/tags/v0.8.0.tar.gz - sha256sums = SKIP + sha256sums = 100eea1a610bb19610a68b11ff468c13b1c2863d1254c2d5b37d198a1beb3227 pkgname = python3-darkdetect --- From 318486c12c014da802b3a82fdab6c0bf983fc88f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A7alo=20Negrier=20Duarte?= Date: Tue, 31 Dec 2024 11:48:16 +0000 Subject: [PATCH 09/17] lenovolegionlinux-dkms-git: remove unload module from post steps MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Gonçalo Negrier Duarte --- .../lenovolegionlinux-dkms-git.pacscript | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/packages/lenovolegionlinux-dkms-git/lenovolegionlinux-dkms-git.pacscript b/packages/lenovolegionlinux-dkms-git/lenovolegionlinux-dkms-git.pacscript index dad805cc15..ff8ef3a917 100644 --- a/packages/lenovolegionlinux-dkms-git/lenovolegionlinux-dkms-git.pacscript +++ b/packages/lenovolegionlinux-dkms-git/lenovolegionlinux-dkms-git.pacscript @@ -29,9 +29,9 @@ package() { } post_install() { - rmmod legion-laptop.ko #unload old module - echo Installation Finished! - echo Reboot the system or run modprobe legion-laptop to load the module! + RED='\033[0;31m' + BOLD=$(tput bold) + echo -e "${RED} ${BOLD} If you have a 2022 or 2023 model, please help testing the new features '\e]8;;https://github.com/johnfanv2/LenovoLegionLinux/issues/46\ahere\e]8;;\a'" } post_upgrade() { @@ -39,9 +39,6 @@ post_upgrade() { } post_remove() { - rmmod legion-laptop.ko #unload old module - echo Uninstall finished. - echo Reboot the system. RED='\033[0;31m' BOLD=$(tput bold) echo -e "${RED} ${BOLD} If you have a 2022 or 2023 model, please help testing the new features '\e]8;;https://github.com/johnfanv2/LenovoLegionLinux/issues/46\ahere\e]8;;\a'" From 096517395402ac02695281d719a5a8c3c834df06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A7alo=20Negrier=20Duarte?= Date: Tue, 31 Dec 2024 12:13:46 +0000 Subject: [PATCH 10/17] lenovolegionlinux-git: add patched Makefile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Gonçalo Negrier Duarte --- packages/lenovolegionlinux-git/.SRCINFO | 2 ++ .../lenovolegionlinux-git/Makefile-debian | 24 +++++++++++++++++++ .../lenovolegionlinux-git.pacscript | 4 +++- 3 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 packages/lenovolegionlinux-git/Makefile-debian diff --git a/packages/lenovolegionlinux-git/.SRCINFO b/packages/lenovolegionlinux-git/.SRCINFO index d2a187c1ee..4a322d194b 100644 --- a/packages/lenovolegionlinux-git/.SRCINFO +++ b/packages/lenovolegionlinux-git/.SRCINFO @@ -19,7 +19,9 @@ pkgbase = lenovolegionlinux-git maintainer = MrDuartePT source = lenovolegionlinux::git+https://github.com/johnfanv2/LenovoLegionLinux source = https://raw.githubusercontent.com/benhoyt/inih/refs/tags/r58/ini.c + source = Makefile-debian sha256sums = SKIP sha256sums = 217fa78f0380669c91a565f3e414d0a8be0f7a7fdfd1e3839f213e86aa574a95 + sha256sums = e4452e50cabfd488e5b04af627187bae184ce72489a6785591c1b66710af7333 pkgname = lenovolegionlinux-git diff --git a/packages/lenovolegionlinux-git/Makefile-debian b/packages/lenovolegionlinux-git/Makefile-debian new file mode 100644 index 0000000000..59d4ec5085 --- /dev/null +++ b/packages/lenovolegionlinux-git/Makefile-debian @@ -0,0 +1,24 @@ +CC ?= clang + +CFLAGS ?= -O2 +CFLAGS += -Wall -linih + +SRC = $(wildcard ini.c modules/*.c) +OBJ = $(SRC:.c=.o) + +TARGET = legiond legiond-ctl +all: $(TARGET) + +legiond: $(OBJ) legiond.o + $(CC) $(CFLAGS) $(OBJ) legiond.o -o legiond + +legiond-ctl: legiond-ctl.o + $(CC) $(CFLAGS) legiond-ctl.o -o legiond-ctl + +%.o : %.c + $(CC) $(CFLAGS) -c $< -o $@ + +clean: + rm -f $(OBJ) $(TARGET) legiond.o legiond-ctl.o + +.PHONY: all clean diff --git a/packages/lenovolegionlinux-git/lenovolegionlinux-git.pacscript b/packages/lenovolegionlinux-git/lenovolegionlinux-git.pacscript index 9e91de130c..1bd7b5d9e9 100644 --- a/packages/lenovolegionlinux-git/lenovolegionlinux-git.pacscript +++ b/packages/lenovolegionlinux-git/lenovolegionlinux-git.pacscript @@ -27,10 +27,12 @@ replaces=("${_pkgname}") source=( "${_pkgname}::git+https://github.com/johnfanv2/LenovoLegionLinux" "https://raw.githubusercontent.com/benhoyt/inih/refs/tags/r58/ini.c" + "Makefile-debian" ) sha256sums=( 'SKIP' '217fa78f0380669c91a565f3e414d0a8be0f7a7fdfd1e3839f213e86aa574a95' + 'e4452e50cabfd488e5b04af627187bae184ce72489a6785591c1b66710af7333' ) prepare() { @@ -45,7 +47,7 @@ build() { # Compile legiond daemon cd legion_linux/extra/service/legiond cp "${srcdir}/ini.c" ./ - sed -i "s/SOURCE1 = \$(TARGET1).c modules\/\*\.c/SOURCE1 = \$(TARGET1).c ini.c modules\/\*\.c/g" Makefile + cp "${srcdir}/Makefile-debian" ./Makefile make } From d79e958267398ff5223282e42b35b6b3935be16c Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 31 Dec 2024 12:20:08 +0000 Subject: [PATCH 11/17] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- packages/lenovolegionlinux-git/.SRCINFO | 4 ++-- srclist | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/lenovolegionlinux-git/.SRCINFO b/packages/lenovolegionlinux-git/.SRCINFO index 4a322d194b..d5193ae996 100644 --- a/packages/lenovolegionlinux-git/.SRCINFO +++ b/packages/lenovolegionlinux-git/.SRCINFO @@ -19,9 +19,9 @@ pkgbase = lenovolegionlinux-git maintainer = MrDuartePT source = lenovolegionlinux::git+https://github.com/johnfanv2/LenovoLegionLinux source = https://raw.githubusercontent.com/benhoyt/inih/refs/tags/r58/ini.c - source = Makefile-debian + source = Makefile-debian sha256sums = SKIP sha256sums = 217fa78f0380669c91a565f3e414d0a8be0f7a7fdfd1e3839f213e86aa574a95 - sha256sums = e4452e50cabfd488e5b04af627187bae184ce72489a6785591c1b66710af7333 + sha256sums = e4452e50cabfd488e5b04af627187bae184ce72489a6785591c1b66710af7333 pkgname = lenovolegionlinux-git diff --git a/srclist b/srclist index 82a235c291..8e1f71b94b 100644 --- a/srclist +++ b/srclist @@ -5499,8 +5499,10 @@ pkgbase = lenovolegionlinux-git maintainer = MrDuartePT source = lenovolegionlinux::git+https://github.com/johnfanv2/LenovoLegionLinux source = https://raw.githubusercontent.com/benhoyt/inih/refs/tags/r58/ini.c + source = Makefile-debian sha256sums = SKIP sha256sums = 217fa78f0380669c91a565f3e414d0a8be0f7a7fdfd1e3839f213e86aa574a95 + sha256sums = e4452e50cabfd488e5b04af627187bae184ce72489a6785591c1b66710af7333 pkgname = lenovolegionlinux-git --- From b16c06ab500c852ab8742311874ca4affee5a5c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A7alo=20Negrier=20Duarte?= Date: Thu, 2 Jan 2025 10:59:37 +0000 Subject: [PATCH 12/17] lenovolegionlinux-git: fix install and description --- packages/lenovolegionlinux-git/.SRCINFO | 2 +- .../lenovolegionlinux-git.pacscript | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/lenovolegionlinux-git/.SRCINFO b/packages/lenovolegionlinux-git/.SRCINFO index d5193ae996..a51f71fa40 100644 --- a/packages/lenovolegionlinux-git/.SRCINFO +++ b/packages/lenovolegionlinux-git/.SRCINFO @@ -1,6 +1,6 @@ pkgbase = lenovolegionlinux-git pkgver = 1.c1e9b55 - pkgdesc = LenovoLegionLinux (LLL) brings additional drivers and tools for Lenovo Legion series laptops to Linux. PLEASE READ THE REPO BEFORE INSTALL THIS PACKAGE!!! + pkgdesc = LenovoLegionLinux (LLL) brings additional drivers and tools for Lenovo Legion series laptops to Linux. url = https://github.com/johnfanv2/LenovoLegionLinux arch = amd64 depends = python3 diff --git a/packages/lenovolegionlinux-git/lenovolegionlinux-git.pacscript b/packages/lenovolegionlinux-git/lenovolegionlinux-git.pacscript index 1bd7b5d9e9..5363abd083 100644 --- a/packages/lenovolegionlinux-git/lenovolegionlinux-git.pacscript +++ b/packages/lenovolegionlinux-git/lenovolegionlinux-git.pacscript @@ -1,7 +1,7 @@ _pkgname="lenovolegionlinux" pkgname="${_pkgname}-git" pkgver="1.c1e9b55" -pkgdesc="LenovoLegionLinux (LLL) brings additional drivers and tools for Lenovo Legion series laptops to Linux. PLEASE READ THE REPO BEFORE INSTALL THIS PACKAGE!!!" +pkgdesc="LenovoLegionLinux (LLL) brings additional drivers and tools for Lenovo Legion series laptops to Linux" arch=("amd64") url='https://github.com/johnfanv2/LenovoLegionLinux' maintainer=("MrDuartePT ") @@ -59,12 +59,12 @@ package() { # Systemd service cd "${srcdir}/${_pkgname}/extra" - install -Dm664 service/*.service "${pkgdir}/etc/systemd/system" - install -Dm664 service/*.timer "${pkgdir}/etc/systemd/system" + install -Dm664 service/*.service -t "${pkgdir}/etc/systemd/system" + install -Dm664 service/*.timer -t "${pkgdir}/etc/systemd/system" # legiond daemon - install -Dm775 service/legiond/legiond "${pkgdir}/usr/bin" - install -Dm775 service/legiond/legiond-ctl "${pkgdir}/usr/bin" + install -Dm775 service/legiond/legiond -t "${pkgdir}/usr/bin" + install -Dm775 service/legiond/legiond-ctl -t "${pkgdir}/usr/bin" } post_install() { From c5ac1c7b0939f3e4cfaf8ad1e422a7f3af886a13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A7alo=20Negrier=20Duarte?= Date: Thu, 2 Jan 2025 11:04:09 +0000 Subject: [PATCH 13/17] lenovolegionlinux-dkms-git: fix package --- .../lenovolegionlinux-dkms-git.pacscript | 8 -------- 1 file changed, 8 deletions(-) diff --git a/packages/lenovolegionlinux-dkms-git/lenovolegionlinux-dkms-git.pacscript b/packages/lenovolegionlinux-dkms-git/lenovolegionlinux-dkms-git.pacscript index ff8ef3a917..051edba483 100644 --- a/packages/lenovolegionlinux-dkms-git/lenovolegionlinux-dkms-git.pacscript +++ b/packages/lenovolegionlinux-dkms-git/lenovolegionlinux-dkms-git.pacscript @@ -22,10 +22,6 @@ package() { cd "${srcdir}/${_pkgname}/kernel_module/" install -Dm644 dkms.conf "${pkgdir}"/usr/src/"${_pkgname}"-1.0.0/dkms.conf cp -r {issue-warning.sh,legion-laptop-unused-snippets.c,legion-laptop.c,Makefile} "${pkgdir}"/usr/src/"${_pkgname}"-1.0.0/ - - cd "${srcdir}/${_pkgname}/deploy/" - install -Dm644 LenovoLegionLinux.hook "${pkgdir}"/etc/pacman.d/hooks/LenovoLegionLinux.hook - install -Dm775 LenovoLegionLinux "${pkgdir}"/usr/bin/LenovoLegionLinux } post_install() { @@ -34,10 +30,6 @@ post_install() { echo -e "${RED} ${BOLD} If you have a 2022 or 2023 model, please help testing the new features '\e]8;;https://github.com/johnfanv2/LenovoLegionLinux/issues/46\ahere\e]8;;\a'" } -post_upgrade() { - post_install "$1" -} - post_remove() { RED='\033[0;31m' BOLD=$(tput bold) From f5c5d96e0b8530429dc29cfb042ddcf1c9218427 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 2 Jan 2025 11:05:53 +0000 Subject: [PATCH 14/17] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- packages/lenovolegionlinux-git/.SRCINFO | 2 +- srclist | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/lenovolegionlinux-git/.SRCINFO b/packages/lenovolegionlinux-git/.SRCINFO index a51f71fa40..cc615a5d75 100644 --- a/packages/lenovolegionlinux-git/.SRCINFO +++ b/packages/lenovolegionlinux-git/.SRCINFO @@ -1,6 +1,6 @@ pkgbase = lenovolegionlinux-git pkgver = 1.c1e9b55 - pkgdesc = LenovoLegionLinux (LLL) brings additional drivers and tools for Lenovo Legion series laptops to Linux. + pkgdesc = LenovoLegionLinux (LLL) brings additional drivers and tools for Lenovo Legion series laptops to Linux url = https://github.com/johnfanv2/LenovoLegionLinux arch = amd64 depends = python3 diff --git a/srclist b/srclist index 8e1f71b94b..c9c247ae8a 100644 --- a/srclist +++ b/srclist @@ -5480,7 +5480,7 @@ pkgname = lenovolegionlinux-dkms-git --- pkgbase = lenovolegionlinux-git pkgver = 1.c1e9b55 - pkgdesc = LenovoLegionLinux (LLL) brings additional drivers and tools for Lenovo Legion series laptops to Linux. PLEASE READ THE REPO BEFORE INSTALL THIS PACKAGE!!! + pkgdesc = LenovoLegionLinux (LLL) brings additional drivers and tools for Lenovo Legion series laptops to Linux url = https://github.com/johnfanv2/LenovoLegionLinux arch = amd64 depends = python3 From 77f64f50df5c7ac4b7ed7fd4f98a0fabd9b45336 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A7alo=20Negrier=20Duarte?= Date: Sun, 12 Jan 2025 14:48:41 +0000 Subject: [PATCH 15/17] lenovolegionlinux-dkms-git: fix typo --- .../lenovolegionlinux-dkms-git.pacscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/lenovolegionlinux-dkms-git/lenovolegionlinux-dkms-git.pacscript b/packages/lenovolegionlinux-dkms-git/lenovolegionlinux-dkms-git.pacscript index 051edba483..e3d8ff7067 100644 --- a/packages/lenovolegionlinux-dkms-git/lenovolegionlinux-dkms-git.pacscript +++ b/packages/lenovolegionlinux-dkms-git/lenovolegionlinux-dkms-git.pacscript @@ -13,7 +13,7 @@ makedepends=( "dmidecode" ) depends=("dkms") -pacdep=("${_pkgname}-git") +pacdeps=("${_pkgname}-git") replaces=("${_pkgname}-dkms") source=("${_pkgname}::git+https://github.com/johnfanv2/LenovoLegionLinux") sha256sums=('SKIP') From 0c537cc28122d6e6c9b5bc0f46aef6af9bd631d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A7alo=20Negrier=20Duarte?= Date: Sun, 12 Jan 2025 14:53:03 +0000 Subject: [PATCH 16/17] lenovolegionlinux-git: update Makefile instead to work * move step to prepare --- packages/lenovolegionlinux-git/.SRCINFO | 2 -- .../lenovolegionlinux-git/Makefile-debian | 24 ------------------- .../lenovolegionlinux-git.pacscript | 8 +++---- 3 files changed, 3 insertions(+), 31 deletions(-) delete mode 100644 packages/lenovolegionlinux-git/Makefile-debian diff --git a/packages/lenovolegionlinux-git/.SRCINFO b/packages/lenovolegionlinux-git/.SRCINFO index cc615a5d75..81c76b3865 100644 --- a/packages/lenovolegionlinux-git/.SRCINFO +++ b/packages/lenovolegionlinux-git/.SRCINFO @@ -19,9 +19,7 @@ pkgbase = lenovolegionlinux-git maintainer = MrDuartePT source = lenovolegionlinux::git+https://github.com/johnfanv2/LenovoLegionLinux source = https://raw.githubusercontent.com/benhoyt/inih/refs/tags/r58/ini.c - source = Makefile-debian sha256sums = SKIP sha256sums = 217fa78f0380669c91a565f3e414d0a8be0f7a7fdfd1e3839f213e86aa574a95 - sha256sums = e4452e50cabfd488e5b04af627187bae184ce72489a6785591c1b66710af7333 pkgname = lenovolegionlinux-git diff --git a/packages/lenovolegionlinux-git/Makefile-debian b/packages/lenovolegionlinux-git/Makefile-debian deleted file mode 100644 index 59d4ec5085..0000000000 --- a/packages/lenovolegionlinux-git/Makefile-debian +++ /dev/null @@ -1,24 +0,0 @@ -CC ?= clang - -CFLAGS ?= -O2 -CFLAGS += -Wall -linih - -SRC = $(wildcard ini.c modules/*.c) -OBJ = $(SRC:.c=.o) - -TARGET = legiond legiond-ctl -all: $(TARGET) - -legiond: $(OBJ) legiond.o - $(CC) $(CFLAGS) $(OBJ) legiond.o -o legiond - -legiond-ctl: legiond-ctl.o - $(CC) $(CFLAGS) legiond-ctl.o -o legiond-ctl - -%.o : %.c - $(CC) $(CFLAGS) -c $< -o $@ - -clean: - rm -f $(OBJ) $(TARGET) legiond.o legiond-ctl.o - -.PHONY: all clean diff --git a/packages/lenovolegionlinux-git/lenovolegionlinux-git.pacscript b/packages/lenovolegionlinux-git/lenovolegionlinux-git.pacscript index 5363abd083..77a57f40ae 100644 --- a/packages/lenovolegionlinux-git/lenovolegionlinux-git.pacscript +++ b/packages/lenovolegionlinux-git/lenovolegionlinux-git.pacscript @@ -13,7 +13,7 @@ depends=( python3-pyqt6 polkitd ) -pacdep=(python3-darkdetect) +pacdeps=(python3-darkdetect) makedepends=( git python3-build @@ -27,17 +27,17 @@ replaces=("${_pkgname}") source=( "${_pkgname}::git+https://github.com/johnfanv2/LenovoLegionLinux" "https://raw.githubusercontent.com/benhoyt/inih/refs/tags/r58/ini.c" - "Makefile-debian" ) sha256sums=( 'SKIP' '217fa78f0380669c91a565f3e414d0a8be0f7a7fdfd1e3839f213e86aa574a95' - 'e4452e50cabfd488e5b04af627187bae184ce72489a6785591c1b66710af7333' ) prepare() { cd "${_pkgname}" sed -i "s/version = _VERSION/version = 1.0.0/g" "${srcdir}/${_pkgname}/python/legion_linux/setup.cfg" + sed -i "s/SRC = \$(wildcard modules\/\*.c)/SRC = \$(wildcard ini.c modules\/\*.c)/g" "./extra/service/legiond/Makefile" + cp "${srcdir}/ini.c" "${srcdir}/${_pkgname}/extra/service/legiond" } build() { @@ -46,8 +46,6 @@ build() { # Compile legiond daemon cd legion_linux/extra/service/legiond - cp "${srcdir}/ini.c" ./ - cp "${srcdir}/Makefile-debian" ./Makefile make } From d950c8c75d4ee038417796e74618a5fe882f3f81 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 14 Jan 2025 16:48:59 +0000 Subject: [PATCH 17/17] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- packages/lenovolegionlinux-dkms-git/.SRCINFO | 1 + packages/lenovolegionlinux-git/.SRCINFO | 1 + srclist | 39 +++++++++++++++++++- 3 files changed, 39 insertions(+), 2 deletions(-) diff --git a/packages/lenovolegionlinux-dkms-git/.SRCINFO b/packages/lenovolegionlinux-dkms-git/.SRCINFO index 103b8c79e9..68c6e8dd70 100644 --- a/packages/lenovolegionlinux-dkms-git/.SRCINFO +++ b/packages/lenovolegionlinux-dkms-git/.SRCINFO @@ -8,6 +8,7 @@ pkgbase = lenovolegionlinux-dkms-git makedepends = lm-sensors makedepends = i2c-tools makedepends = dmidecode + pacdeps = lenovolegionlinux-git replaces = lenovolegionlinux-dkms license = GPL-2.0-only maintainer = MrDuartePT diff --git a/packages/lenovolegionlinux-git/.SRCINFO b/packages/lenovolegionlinux-git/.SRCINFO index 81c76b3865..b393e8b103 100644 --- a/packages/lenovolegionlinux-git/.SRCINFO +++ b/packages/lenovolegionlinux-git/.SRCINFO @@ -14,6 +14,7 @@ pkgbase = lenovolegionlinux-git makedepends = python3-setuptools makedepends = python3-wheel makedepends = libinih-dev + pacdeps = python3-darkdetect replaces = lenovolegionlinux license = GPL-2.0-only maintainer = MrDuartePT diff --git a/srclist b/srclist index dfb343a659..b358dc61f1 100644 --- a/srclist +++ b/srclist @@ -5640,6 +5640,7 @@ pkgbase = lenovolegionlinux-dkms-git makedepends = lm-sensors makedepends = i2c-tools makedepends = dmidecode + pacdeps = lenovolegionlinux-git replaces = lenovolegionlinux-dkms license = GPL-2.0-only maintainer = MrDuartePT @@ -5664,15 +5665,14 @@ pkgbase = lenovolegionlinux-git makedepends = python3-setuptools makedepends = python3-wheel makedepends = libinih-dev + pacdeps = python3-darkdetect replaces = lenovolegionlinux license = GPL-2.0-only maintainer = MrDuartePT source = lenovolegionlinux::git+https://github.com/johnfanv2/LenovoLegionLinux source = https://raw.githubusercontent.com/benhoyt/inih/refs/tags/r58/ini.c - source = Makefile-debian sha256sums = SKIP sha256sums = 217fa78f0380669c91a565f3e414d0a8be0f7a7fdfd1e3839f213e86aa574a95 - sha256sums = e4452e50cabfd488e5b04af627187bae184ce72489a6785591c1b66710af7333 pkgname = lenovolegionlinux-git --- @@ -9416,6 +9416,41 @@ pkgbase = python3-anyascii pkgname = python3-anyascii --- +pkgbase = python3-darkdetect + pkgver = 0.8.0 + pkgdesc = Detect OS Dark Mode from Python + url = https://github.com/albertosottile/darkdetect + arch = any + depends = python3 + makedepends = git + makedepends = python3-build + makedepends = python3-installer + makedepends = python3-wheel + makedepends = python3-setuptools + license = BSD-1-Clause + maintainer = MrDuartePT + source = https://github.com/albertosottile/darkdetect/archive/refs/tags/v0.8.0.tar.gz + sha256sums = 100eea1a610bb19610a68b11ff468c13b1c2863d1254c2d5b37d198a1beb3227 + +pkgname = python3-darkdetect +--- +pkgbase = python3-editables + pkgver = 0.5 + pkgdesc = Python library for creating editable wheels + url = https://github.com/pfmoore/editables + arch = any + depends = python3 + makedepends = git + makedepends = python3-build + makedepends = python3-installer + makedepends = python3-flit-scm + license = MIT + maintainer = xdavius + source = python3-editables::git+https://github.com/pfmoore/editables#commit=2331418af764ef203959327354335c431978e70d + sha256sums = SKIP + +pkgname = python3-editables +--- pkgbase = python3-flit-core pkgver = 3.9.0 pkgdesc = A PEP 517 build backend for packages using Flit