-
-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(*): deprecate all
lsb_release
usage (#5933)
Co-authored-by: ook37 <[email protected]>
- Loading branch information
Showing
11 changed files
with
27 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,18 +6,14 @@ pkgdesc="A list of mods developed by elParaguayo for Qtile" | |
pacdeps=("qtile-git") | ||
maintainer=("Ruturajn <[email protected]>") | ||
makedepends=("python3-venv" "python3-pip") | ||
|
||
release="$(lsb_release -cs)" | ||
modern=("devel" "sid" "lunar" "bookworm" "mantic" "noble" "trixie" "testing" "unstable") | ||
# shellcheck disable=SC2076 | ||
if [[ " ${modern[*]} " =~ " ${release} " ]]; then | ||
pyhack=("--break-system-packages") | ||
else | ||
pyhack=() | ||
fi | ||
external_connection="true" | ||
|
||
build() { | ||
cd "${_archive}" | ||
modern=("devel" "sid" "lunar" "bookworm" "mantic" "noble" "trixie" "testing" "unstable") | ||
for mod in "${modern[@]}"; do | ||
[[ ${mod} == "${DISTRO#*:}" ]] && pyhack=("--break-system-packages") | ||
done | ||
pip3 install build --user "${pyhack[@]}" | ||
python3 -m build | ||
mv dist/*.whl . | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,18 +6,14 @@ license="MIT" | |
depends=("python3-cffi" "xserver-xorg" "python3-xcffib" "python3-cairocffi" "libpangocairo-1.0-0" "python3-pip" "python3-dbus" "libpulse-dev" "pavucontrol" "python3-testresources") | ||
pkgdesc="A full-featured, hackable tiling window manager written and configured in Python" | ||
maintainer=("Ruturajn <[email protected]>") | ||
|
||
release="$(lsb_release -cs)" | ||
modern=("devel" "sid" "lunar" "bookworm" "mantic" "noble" "trixie" "testing" "unstable") | ||
# shellcheck disable=SC2076 | ||
if [[ " ${modern[*]} " =~ " ${release} " ]]; then | ||
pyhack=("--break-system-packages") | ||
else | ||
pyhack=() | ||
fi | ||
external_connection="true" | ||
|
||
package() { | ||
cd "${_archive}" | ||
modern=("devel" "sid" "lunar" "bookworm" "mantic" "noble" "trixie" "testing" "unstable") | ||
for mod in "${modern[@]}"; do | ||
[[ ${mod} == "${DISTRO#*:}" ]] && pyhack=("--break-system-packages") | ||
done | ||
pip3 install --upgrade --no-cache --force-reinstall cairocffi cffi xcffib "${pyhack[@]}" | ||
pip3 install dbus-next setuptools-scm setuptools "${pyhack[@]}" | ||
mkdir -p "${pkgdir}"/usr/share/xsessions | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,18 +9,14 @@ depends=("gettext" "python3-pip" "dh-python" "python3-all" "python3-pyqt5" "pyth | |
pkgdesc="Securely and easily download, verify, install, and launch Tor Browser in Linux" | ||
optdepends=("apparmor: support for apparmor profiles") | ||
maintainer=("Oren Klopfer <[email protected]>") | ||
|
||
release="$(lsb_release -cs)" | ||
modern=("devel" "sid" "lunar" "bookworm" "mantic" "noble" "trixie" "testing" "unstable") | ||
# shellcheck disable=SC2076 | ||
if [[ " ${modern[*]} " =~ " ${release} " ]]; then | ||
pyhack=("--break-system-packages") | ||
else | ||
pyhack=() | ||
fi | ||
external_connection="true" | ||
|
||
prepare() { | ||
cd "${_archive}" | ||
modern=("devel" "sid" "lunar" "bookworm" "mantic" "noble" "trixie" "testing" "unstable") | ||
for mod in "${modern[@]}"; do | ||
[[ ${mod} == "${DISTRO#*:}" ]] && pyhack=("--break-system-packages") | ||
done | ||
pip3 install distro "${pyhack[@]}" | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters