mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-10-12 17:51:11 -04:00
as per the coding style guide: https://projects.gentoo.org/qa/policy-guide/ebuild-format.html#pg0101 only these changes were done: [ -e ... ] to [[ -e ... ]] [ -z ... ] to [[ -z ... ]] [ -n ... ] to [[ -n ... ]] [ ! -f ... ] to [[ ! -f ... ]] [ -f ... ] to [[ -f ... ]] [ -d ... ] to [[ -d ... ]] the changes were generated using this command: ``` find -name '*.ebuild' -exec sed -i -E \ 's|([^[])\[+(\s+)([^]]+)(\s+)\]+([^]]\|$)|\1\[\[\2\3\4\]\]\5|g' \ {} \+ ``` this is aimed to be a series of commits meant to replace all instance of POSIX [ ... ] to bash's [[ ... ]], to make guru up to date with the coding style guide. this process is divided up into a series of commits in order to make review and testing more easy Signed-off-by: ingenarel (NeoJesus) <ingenarel_neojesus@disroot.org> Part-of: https://codeberg.org/gentoo/guru/pulls/6 Signed-off-by: Michał Górny <mgorny@gentoo.org>
39 lines
872 B
Bash
39 lines
872 B
Bash
# Copyright 2024 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
DESCRIPTION="Soothing pastel mouse cursors"
|
|
HOMEPAGE="https://github.com/catppuccin"
|
|
|
|
MY_URI="https://github.com/catppuccin/cursors/releases/download/v${PV}"
|
|
MY_TYPES=("latte" "frappe" "mocha" "macchiato")
|
|
MY_COLORS=(
|
|
"blue" "dark" "flamingo" "green" "lavender" "light" "maroon"
|
|
"mauve" "peach" "pink" "red" "rosewater" "sapphire" "sky" "teal" "yellow"
|
|
)
|
|
|
|
SRC_URI=""
|
|
for type in "${MY_TYPES[@]}"; do
|
|
for color in "${MY_COLORS[@]}"; do
|
|
SRC_URI+=" ${MY_URI}/catppuccin-${type}-${color}-cursors.zip -> ${P}-${type}-${color}.zip"
|
|
done
|
|
done
|
|
|
|
S="${WORKDIR}"
|
|
|
|
LICENSE="GPL-3"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64"
|
|
|
|
BDEPEND="app-arch/unzip"
|
|
|
|
src_install() {
|
|
insinto "/usr/share/icons"
|
|
for folder in * ; do
|
|
if [[ -d "${folder}" ]]; then
|
|
doins -r "${folder}"
|
|
fi
|
|
done
|
|
}
|