added gentoo install

This commit is contained in:
jwihardi
2025-10-02 22:43:39 -04:00
parent 626c71a942
commit cd622e9f81
23 changed files with 578 additions and 307 deletions
@@ -0,0 +1,21 @@
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="Illogical Impulse Audio Dependencies"
HOMEPAGE=""
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~x86"
RESTRICT="strip"
DEPEND=""
RDEPEND="
media-sound/cava
media-sound/pavucontrol-qt
media-video/wireplumber
dev-libs/libdbusmenu[gtk3]
media-sound/playerctl
"
@@ -0,0 +1,19 @@
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="Illogical Impulse Backlight Dependencies"
HOMEPAGE=""
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~x86"
RESTRICT="strip"
DEPEND=""
RDEPEND="
app-misc/geoclue
app-misc/brightnessctl
app-misc/ddcutil
"
@@ -0,0 +1,28 @@
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="Illogical Impulse Basic Dependencies"
HOMEPAGE=""
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~x86"
RESTRICT="strip"
DEPEND=""
RDEPEND="
net-misc/axel
sys-devel/bc
sys-apps/coreutils
app-misc/cliphist
dev-build/cmake
net-misc/curl
net-misc/rsync
net-misc/wget
sys-apps/ripgrep
dev-python/jq
dev-build/meson
x11-misc/xdg-user-dirs
"
@@ -0,0 +1,24 @@
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
Bibata_VER=2.0.6
DESCRIPTION="Material Based Cursor Theme, installed for illogical-impulse dotfiles"
HOMEPAGE=""
SRC_URI="https://github.com/ful1e5/Bibata_Cursor/releases/download/v${Bibata_VER}/Bibata-Modern-Classic.tar.xz -> bibata-modern-classic.tar.xz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~x86"
RESTRICT="strip"
DEPEND=""
RDEPEND=""
S="${WORKDIR}/Bibata-Modern-Classic"
src_install() {
insinto /usr/share/icons
doins -r "${S}"
}
@@ -0,0 +1,94 @@
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DART_SASS_VER=1.78.0
DESCRIPTION="Illogical Impulse Fonts and Theming Dependencies"
HOMEPAGE=""
SRC_URI="
https://github.com/Bali10050/Darkly/archive/refs/heads/main.tar.gz -> ${P}-darkly.tar.gz
https://github.com/naipefoundry/gabarito/archive/refs/heads/main.tar.gz -> ${P}-gabarito.tar.gz
https://github.com/luisbocanegra/kde-material-you-colors/archive/refs/heads/main.tar.gz -> ${P}-kde-material-you-colors.tar.gz
https://github.com/googlefonts/rubik/archive/refs/heads/main.tar.gz -> ${P}-rubik.tar.gz
https://github.com/ThomasJockin/readexpro/archive/refs/heads/master.tar.gz -> ${P}-readexpro.tar.gz
https://github.com/google/material-design-icons/archive/refs/heads/main.tar.gz -> ${P}-material-design-icons.tar.gz
https://github.com/mjkim0727/breeze-plus/archive/refs/heads/main.tar.gz -> ${P}-breeze-plus.tar.gz
https://github.com/lassekongo83/adw-gtk3/archive/refs/heads/main.tar.gz -> ${P}-adw-gtk3.tar.gz
"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~x86"
RESTRICT="strip"
DEPEND=""
RDEPEND="
kde-plasma/breeze
sys-apps/eza
app-shells/fish
media-libs/fontconfig
x11-terms/kitty
x11-misc/matugen
app-shells/starship
media-fonts/jetbrains-mono
media-fonts/twemoji
"
# Source directories
S="${WORKDIR}"
S_DARKLY="${S}/Darkly-main"
S_GABARITO="${S}/gabarito-main"
S_KDE_MATERIAL_YOU_COLORS="${S}/kde-material-you-colors-main"
S_RUBIK="${S}/rubik-main"
S_READEXPRO="${S}/readexpro-master"
S_MATERIAL_DESIGN_ICONS="${S}/material-design-icons-main"
S_ADW_GTK3="${S}/adw-gtk3-main"
S_BREEZE_PLUS="${S}/breeze-plus-main"
src_unpack() {
default
mv "${WORKDIR}/dart-sass-${DART_SASS_VER}-linux-x64" "${S_DART_SASS}"
}
src_compile() {
cd "${S_DARKLY}"
mkdir -p build
cd build
cmake .. -DBUILD_QT5=OFF -DBUILD_QT6=ON
cmake --build . --parallel=$(nproc)
cd "${S_ADW_GTK3}"
meson setup build
meson compile -C build
}
src_install() {
cd "${S_DARKLY}/build"
cmake --install . --destdir="${D}"
insinto /usr/share/fonts/ttf-gabarito
doins "${S_GABARITO}"/fonts/ttf/*.ttf
cd "${S_KDE_MATERIAL_YOU_COLORS}"
mkdir -p build
cd build
cmake ..
cmake --build . --parallel=$(nproc)
cmake --install . --destdir="${D}"
insinto /usr/share/fonts/ttf-readex-pro
doins "${S_READEXPRO}"/fonts/ttf/*.ttf
insinto /usr/share/fonts/ttf-material-design-icons
doins "${S_MATERIAL_DESIGN_ICONS}"/font/*.ttf
insinto /usr/share/themes
doins -r "${S_BREEZE_PLUS}"/src/breeze-plus*
cd "${S_ADW_GTK3}"
meson install -C build --destdir="${D}"
fc-cache -f
}
@@ -0,0 +1,29 @@
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="Illogical Impulse Hyprland related packages"
HOMEPAGE=""
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~x86"
RESTRICT="strip"
DEPEND=""
RDEPEND="
gui-apps/hypridle
gui-libs/hyprcursor
gui-wm/hyprland
gui-libs/hyprland-qtutils
gui-libs/hyprland-qt-support
dev-libs/hyprlang
gui-apps/hyprlock
gui-apps/hyprpicker
gui-apps/hyprsunset
gui-libs/hyprutils
dev-util/hyprwayland-scanner
gui-libs/xdg-desktop-portal-hyprland
gui-apps/wl-clipboard
"
@@ -0,0 +1,23 @@
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="Illogical Impulse KDE Dependencies"
HOMEPAGE=""
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~x86"
RESTRICT="strip"
DEPEND=""
RDEPEND="
kde-plasma/bluedevil
gnome-base/gnome-keyring
net-misc/networkmanager
kde-plasma/plasma-nm
kde-plasma/polkit-kde-agent
kde-apps/dolphin
kde-plasma/systemsettings
"
@@ -0,0 +1,56 @@
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
MICROTEX_VER="0e3707f"
DESCRIPTION="MicroTeX for illogical-impulse dotfiles"
HOMEPAGE="https://github.com/NanoMichael/MicroTeX"
SRC_URI="https://github.com/NanoMichael/MicroTeX/archive/${MICROTEX_VER}.tar.gz -> MicroTeX-${MICROTEX_VER}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~x86"
RESTRICT="strip"
DEPEND=""
RDEPEND="
dev-libs/tinyxml2
dev-cpp/gtkmm
dev-cpp/gtksourceviewmm
dev-cpp/cairomm
"
# Use WORKDIR directly after stripping top-level folder
S="${WORKDIR}"
src_unpack() {
# If I don't strip it it has an insane hash
tar xvf "${DISTDIR}/MicroTeX-${MICROTEX_VER}.tar.gz" --strip-components=1 -C "${WORKDIR}"
}
src_prepare() {
default
cd "${S}" || die
# Gentoo doesn't have gtksourceviewmm4 even on testing so I just left it on 3
# sed -i 's/gtksourceviewmm-3.0/gtksourceviewmm-4.0/' CMakeLists.txt
sed -i 's/tinyxml2.so.10/tinyxml2.so.11/' CMakeLists.txt
}
src_compile() {
cd "${S}" || die
mkdir -p build
cmake -B build -S . -DCMAKE_BUILD_TYPE=None
cmake --build build
}
src_install() {
cd "${S}" || die
insinto /opt/illogical-impulse-microtex-git
doins -r build/LaTeX
doins -r build/res
insinto /usr/share/licenses/illogical-impulse-microtex-git
doins LICENSE
}
@@ -0,0 +1,26 @@
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="A fork of mjkim0727/OneUI4-Icons for illogical-impulse dotfiles"
HOMEPAGE=""
SRC_URI="https://github.com/end-4/OneUI4-Icons/archive/main.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64"
RESTRICT="strip"
DEPEND=""
RDEPEND=""
S="${WORKDIR}/OneUI4-Icons-main"
src_install() {
insinto /usr/share/icons
for theme in "OneUI" "OneUI-dark" "OneUI-light"; do
doins -r ${S}/${theme}
done
}
@@ -0,0 +1,20 @@
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="Illogical Impulse XDG Desktop Portals"
HOMEPAGE=""
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~x86"
RESTRICT="strip"
DEPEND=""
RDEPEND="
sys-apps/xdg-desktop-portal
kde-plasma/xdg-desktop-portal-kde
sys-apps/xdg-desktop-portal-gtk
gui-libs/xdg-desktop-portal-hyprland
"
@@ -0,0 +1,25 @@
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="Illogical Impulse Python Dependencies"
HOMEPAGE=""
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~x86"
RESTRICT="strip"
# SASSC is not needed here, pkgbuild is capping
DEPEND=""
RDEPEND="
dev-python/clang
dev-python/uv
gui-libs/gtk
gui-libs/libadwaita
net-libs/libsoup
dev-libs/libportal
dev-libs/gobject-introspection
media-libs/opencv
"
@@ -0,0 +1,21 @@
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="Illogical Impulse Screenshot and Recording Dependencies"
HOMEPAGE=""
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~x86"
RESTRICT="strip"
DEPEND=""
RDEPEND="
gui-apps/hyprshot
gui-apps/slurp
gui-apps/swappy
app-text/tesseract
gui-apps/wf-recorder
"
@@ -0,0 +1,34 @@
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="Illogical Impulse GTK/Qt Dependencies"
HOMEPAGE=""
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~x86"
RESTRICT="strip"
DEPEND=""
RDEPEND="
kde-apps/kdialog
dev-qt/qt5compat
dev-qt/qtbase
dev-qt/qtdeclarative
dev-qt/qtimageformats
dev-qt/qtmultimedia
dev-qt/qtpositioning
dev-qt/qtquicktimeline
dev-qt/qtsensors
dev-qt/qtsvg
dev-qt/qttools
dev-qt/qttranslations
dev-qt/qtvirtualkeyboard
dev-qt/qtwayland
kde-frameworks/syntax-highlighting
sys-power/upower
gui-apps/wtype
x11-misc/ydotool
"
@@ -0,0 +1,21 @@
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="Illogicall Impulse Widget Dependencies"
HOMEPAGE=""
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~x86"
RESTRICT="strip"
DEPEND=""
RDEPEND="
gui-apps/fuzzel
dev-libs/glib
gui-apps/quickshell
app-i18n/translate-shell
gui-apps/wlogout
"
+45
View File
@@ -0,0 +1,45 @@
if [[ -z $(eselect repository list | grep localrepo) ]]; then
v sudo eselect repository create localrepo
v sudo eselect repository enable localrepo
fi
if [[ -z $(eselect repository list | grep guru) ]]; then
v sudo eselect repository enable guru
fi
arch=$(portageq envvar ACCEPT_KEYWORDS)
metapkgs=(illogical-impulse-{audio,backlight,basic,bibata-modern-classic-bin,fonts-themes,hyprland,kde,microtex-git,oneui4-icons-git,portal,python,screencapture,toolkit,widgets})
ebuild_dir="/var/db/repos/localrepo/app-misc"
# Unmasks
x cp ./dist-gentoo/keywords ./dist-gentoo/keywords-user
x sed -i "s/$/ ~${arch}/" ./dist-gentoo/keywords-user
v sudo cp ./dist-gentoo/keywords-user /etc/portage/package.accept_keywords/end4
# Use Flags
v sudo cp ./dist-gentoo/useflags /etc/portage/package.use/end4
# Update system
#v sudo emerge --sync
#v sudo emerge --ask --verbose --newuse --update --deep @world
#v sudo emerge --depclean
# Remove old ebuilds (if this isn't done the wildcard will fuck upon a version change)
x sudo rm -r ${ebuild_dir}/illogical-impulse-*
# Install dependencies
to_install=""
for i in "${metapkgs[@]}"; do
x sudo mkdir -p ${ebuild_dir}/${i}
v sudo cp ./dist-gentoo/${i}/${i}*.ebuild ${ebuild_dir}/${i}/
v sudo ebuild ${ebuild_dir}/${i}/*.ebuild digest
to_install+="app-misc/${i} "
done
# Easier to debug when it's all installed at once
#v sudo emerge --quiet ${to_install}
+33
View File
@@ -0,0 +1,33 @@
# This script is meant to be sourced.
# It's not for directly running.
#####################################################################################
# These python packages are installed using uv into the venv (virtual environment). Once the folder of the venv gets deleted, they are all gone cleanly. So it's considered as setups, not dependencies.
showfun install-python-packages
v install-python-packages
v getent group i2c || sudo groupadd i2c
v sudo usermod -aG video,i2c,input "$(whoami)"
if [[ ! -z $(systemctl --version) ]]; then
v bash -c "echo i2c-dev | sudo tee /etc/modules-load.d/i2c-dev.conf"
v systemctl --user enable ydotool --now
v sudo systemctl enable bluetooth --now
elif [[ ! -z $(openrc --version) ]]; then
v bash -c "echo 'modules=i2c-dev' | sudo tee -a /etc/conf.d/modules"
v sudo rc-update add modules boot
v sudo rc-update add ydotool default
v sudo rc-update add bluetooth default
x sudo rc-service ydotool start
x sudo rc-service bluetooth start
else
echo "test"
fi
v sudo chown $(whoami):$(whoami) ~/.local/share/icons
v sudo chown $(whoami):$(whoami) ~/.local/share/konsole
v gsettings set org.gnome.desktop.interface font-name 'Rubik 11'
v gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark'
v kwriteconfig6 --file kdeglobals --group KDE --key widgetStyle Darkly
+28
View File
@@ -0,0 +1,28 @@
app-misc/illogical-impulse-audio
app-misc/illogical-impulse-backlight
app-misc/illogical-impulse-basic
app-misc/illogical-impulse-bibata-modern-classic-bin
app-misc/illogical-impulse-fonts-themes
app-misc/illogical-impulse-hyprland
app-misc/illogical-impulse-kde
app-misc/illogical-impulse-microtex-git
app-misc/illogical-impulse-oneui4-icons-git
app-misc/illogical-impulse-portal
app-misc/illogical-impulse-python
app-misc/illogical-impulse-screencapture
app-misc/illogical-impulse-toolkit
app-misc/illogical-impulse-widgets
x11-misc/matugen
media-fonts/twemoji
gui-apps/hypridle
gui-apps/hyprlock
gui-apps/hyprpicker
gui-apps/hyprsunset
gui-libs/xdg-desktop-portal-hyprland
gui-apps/hyprshot
gui-apps/wf-recorder
gui-apps/wtype
gui-apps/fuzzel
gui-apps/quickshell
gui-apps/wlogout
dev-cpp/sdbus-c++
+28
View File
@@ -0,0 +1,28 @@
app-misc/illogical-impulse-audio ~amd64
app-misc/illogical-impulse-backlight ~amd64
app-misc/illogical-impulse-basic ~amd64
app-misc/illogical-impulse-bibata-modern-classic-bin ~amd64
app-misc/illogical-impulse-fonts-themes ~amd64
app-misc/illogical-impulse-hyprland ~amd64
app-misc/illogical-impulse-kde ~amd64
app-misc/illogical-impulse-microtex-git ~amd64
app-misc/illogical-impulse-oneui4-icons-git ~amd64
app-misc/illogical-impulse-portal ~amd64
app-misc/illogical-impulse-python ~amd64
app-misc/illogical-impulse-screencapture ~amd64
app-misc/illogical-impulse-toolkit ~amd64
app-misc/illogical-impulse-widgets ~amd64
x11-misc/matugen ~amd64
media-fonts/twemoji ~amd64
gui-apps/hypridle ~amd64
gui-apps/hyprlock ~amd64
gui-apps/hyprpicker ~amd64
gui-apps/hyprsunset ~amd64
gui-libs/xdg-desktop-portal-hyprland ~amd64
gui-apps/hyprshot ~amd64
gui-apps/wf-recorder ~amd64
gui-apps/wtype ~amd64
gui-apps/fuzzel ~amd64
gui-apps/quickshell ~amd64
gui-apps/wlogout ~amd64
dev-cpp/sdbus-c++ ~amd64
+1
View File
@@ -0,0 +1 @@
AUTO
@@ -36,7 +36,6 @@ media-fonts/jetbrains-mono X
media-fonts/twemoji X
# The rest are handled in the ebuild
################### HYPRLAND ###################
#gui-apps/hypridle (no use flags)
#gui-libs/hyprcursor (no use flags)
@@ -71,6 +70,8 @@ sys-apps/xdg-desktop-portal-gtk X wayland
#dev-python/clang (nothing needed)
#dev-python/uv (nothing needed)
gui-libs/gtk X introspection wayland
gui-libs/libadwaita introspection
net-libs/libsoup brotli introspection ssl
#dev-libs/gobject-introspection (nothing needed)
# dart-sassc handled in the ebuild
media-libs/opencv eigen ffmpeg jpeg opencl opengl python wayland gtk3 webp
-206
View File
@@ -1,206 +0,0 @@
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
Bibata_VER=2.0.6
DART_SASS_VER=1.78.0
DESCRIPTION="For End-4 dot-files with icons, themes, fonts, adw-gtk3, and Dart Sass"
HOMEPAGE=""
SRC_URI="
https://github.com/end-4/OneUI4-Icons/archive/main.tar.gz -> ${P}.tar.gz
https://github.com/ful1e5/Bibata_Cursor/releases/download/v${Bibata_VER}/Bibata-Modern-Classic.tar.xz -> bibata-modern-classic.tar.xz
https://github.com/Bali10050/Darkly/archive/refs/heads/main.tar.gz -> ${P}-darkly.tar.gz
https://github.com/naipefoundry/gabarito/archive/refs/heads/main.tar.gz -> ${P}-gabarito.tar.gz
https://github.com/luisbocanegra/kde-material-you-colors/archive/refs/heads/main.tar.gz -> ${P}-kde-material-you-colors.tar.gz
https://github.com/googlefonts/rubik/archive/refs/heads/main.tar.gz -> ${P}-rubik.tar.gz
https://github.com/ThomasJockin/readexpro/archive/refs/heads/master.tar.gz -> ${P}-readexpro.tar.gz
https://github.com/google/material-design-icons/archive/refs/heads/main.tar.gz -> ${P}-material-design-icons.tar.gz
https://github.com/mjkim0727/breeze-plus/archive/refs/heads/main.tar.gz -> ${P}-breeze-plus.tar.gz
https://github.com/lassekongo83/adw-gtk3/archive/refs/heads/main.tar.gz -> ${P}-adw-gtk3.tar.gz
https://github.com/sass/dart-sass/releases/download/${DART_SASS_VER}/dart-sass-${DART_SASS_VER}-linux-x64.tar.gz -> dart-sass.tar.gz
"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64"
RESTRICT="strip"
DEPEND=""
RDEPEND="
media-sound/cava
media-sound/pavucontrol-qt
media-video/wireplumber
dev-libs/libdbusmenu[gtk3]
media-sound/playerctl
app-misc/geoclue
app-misc/brightnessctl
app-misc/ddcutil
net-misc/axel
sys-devel/bc
sys-apps/coreutils
app-misc/cliphist
dev-build/cmake
net-misc/curl
net-misc/rsync
net-misc/wget
sys-apps/ripgrep
dev-python/jq
dev-build/meson
x11-misc/xdg-user-dirs
kde-plasma/breeze
sys-apps/eza
app-shells/fish
media-libs/fontconfig
x11-terms/kitty
x11-misc/matugen
app-shells/starship
media-fonts/jetbrains-mono
media-fonts/twemoji
gui-apps/hypridle
gui-libs/hyprcursor
gui-wm/hyprland
gui-libs/hyprland-qtutils
gui-libs/hyprland-qt-support
dev-libs/hyprlang
gui-apps/hyprlock
gui-apps/hyprpicker
gui-apps/hyprsunset
gui-libs/hyprutils
dev-util/hyprwayland-scanner
gui-apps/wl-clipboard
kde-plasma/bluedevil
gnome-base/gnome-keyring
net-misc/networkmanager
kde-plasma/plasma-nm
kde-plasma/polkit-kde-agent
kde-apps/dolphin
kde-plasma/systemsettings
sys-apps/xdg-desktop-portal
kde-plasma/xdg-desktop-portal-kde
sys-apps/xdg-desktop-portal-gtk
gui-libs/xdg-desktop-portal-hyprland
dev-python/clang
dev-python/uv
gui-libs/gtk
dev-libs/gobject-introspection
media-libs/opencv
gui-apps/hyprshot
gui-apps/slurp
gui-apps/swappy
app-text/tesseract
gui-apps/wf-recorder
kde-apps/kdialog
dev-qt/qt5compat
dev-qt/qtbase
dev-qt/qtdeclarative
dev-qt/qtimageformats
dev-qt/qtmultimedia
dev-qt/qtpositioning
dev-qt/qtquicktimeline
dev-qt/qtsensors
dev-qt/qtsvg
dev-qt/qttools
dev-qt/qttranslations
dev-qt/qtvirtualkeyboard
dev-qt/qtwayland
kde-frameworks/syntax-highlighting
sys-power/upower
gui-apps/wtype
x11-misc/ydotool
gui-apps/fuzzel
dev-libs/glib
gui-apps/quickshell
app-i18n/translate-shell
gui-apps/wlogout
"
# Source directories
S="${WORKDIR}"
S_BIBATA="${S}/Bibata-Modern-Classic"
S_ONEUI="${S}/OneUI4-Icons-main"
S_DARKLY="${S}/Darkly-main"
S_GABARITO="${S}/gabarito-main"
S_KDE_MATERIAL_YOU_COLORS="${S}/kde-material-you-colors-main"
S_RUBIK="${S}/rubik-main"
S_READEXPRO="${S}/readexpro-master"
S_MATERIAL_DESIGN_ICONS="${S}/material-design-icons-main"
S_ADW_GTK3="${S}/adw-gtk3-main"
S_BREEZE_PLUS="${S}/breeze-plus-main"
S_DART_SASS="${S}/dart-sass"
src_unpack() {
default
mv "${WORKDIR}/dart-sass-${DART_SASS_VER}-linux-x64" "${S_DART_SASS}"
}
src_compile() {
cd "${S_DARKLY}"
mkdir -p build
cd build
cmake .. -DBUILD_QT5=OFF -DBUILD_QT6=ON
cmake --build . --parallel=$(nproc)
cd "${S_ADW_GTK3}"
meson setup build
meson compile -C build
}
src_install() {
insinto /usr/libexec/dart-sass
doins -r "${S_DART_SASS}"/*
fperms +x /usr/libexec/dart-sass/sass
fperms +x /usr/libexec/dart-sass/src/dart
dodir /usr/bin
cat > "${D}/usr/bin/sass" <<-EOF || die
#!/bin/bash
exec /usr/libexec/dart-sass/sass "\$@"
EOF
fperms +x /usr/bin/sass
insinto /usr/share/icons
doins -r "${S_BIBATA}"
for theme in "OneUI" "OneUI-dark" "OneUI-light"; do
doins -r ${S_ONEUI}/${theme}
done
cd "${S_DARKLY}/build"
cmake --install . --destdir="${D}"
insinto /usr/share/fonts/ttf-gabarito
doins "${S_GABARITO}"/fonts/ttf/*.ttf
cd "${S_KDE_MATERIAL_YOU_COLORS}"
mkdir -p build
cd build
cmake ..
cmake --build . --parallel=$(nproc)
cmake --install . --destdir="${D}"
insinto /usr/share/fonts/ttf-readex-pro
doins "${S_READEXPRO}"/fonts/ttf/*.ttf
insinto /usr/share/fonts/ttf-material-design-icons
doins "${S_MATERIAL_DESIGN_ICONS}"/font/*.ttf
insinto /usr/share/themes
doins -r "${S_BREEZE_PLUS}"/src/breeze-plus*
cd "${S_ADW_GTK3}"
meson install -C build --destdir="${D}"
fc-cache -f
}
-14
View File
@@ -1,14 +0,0 @@
x11-misc/matugen
media-fonts/twemoji
gui-apps/hypridle
gui-apps/hyprlock
gui-apps/hyprpicker
gui-apps/hyprsunset
gui-libs/xdg-desktop-portal-hyprland
gui-apps/hyprshot
gui-apps/wf-recorder
gui-apps/wtype
gui-apps/fuzzel
gui-apps/quickshell
gui-apps/wlogout
dev-cpp/sdbus-c++
-86
View File
@@ -1,86 +0,0 @@
#!/bin/bash
latest_gcc_ver=15
ebuild_name="end4-1.0.ebuild"
arch=$(portageq envvar ACCEPT_KEYWORDS)
print_message () {
message=$1
color=$2
if [[ ${color} = "r" ]]; then
echo -e "\033[31m$message\033[0m"
elif [[ ${color} = "g" ]]; then
echo -e "\033[32m$message\033[0m"
else
echo -e "\033[34m$message\033[0m"
fi
color="b"
}
get_input () {
input_message=$1
answer=""
bool_answer=-1
while true; do
read -p "$(print_message "$input_message ([\033[32mY\033[34m]/\033[31mn\033[0m): ")" answer
case "$answer" in
[Yy]* | "" )
bool_answer=0
break
;;
[Nn]* )
bool_answer=1
break
;;
* )
echo -e "\033[31mInput not understood ([\033[32mY\033[34m]/\033[31mn\033[0m)\033[0m)"
;;
esac
done
}
exec_cmd () {
cmd=$1
message=$2
terminate=$3
get_input "$message"
case "$bool_answer" in
0 )
print_message "+ ${cmd}" "g"
[ ! -z "$cmd" ] && eval "$cmd"
;;
1 )
print_message "- ${cmd}" "r"
[ "$terminate" == "y" ] && exit 1
;;
* )
exit 1
;;
esac
cmd=""
}
print_message "If you want to use the latest Hyprland version, you must unmask it first, the script does not do this. Change GCC version to a compatible one and then emerge @world."
echo ""
print_message "ARCHITECTURE DETECTED IS \033[32m$arch\033[0m"
exec_cmd "sudo eselect repository create localrepo || true" "Create local repository (ignore errors)"
exec_cmd "sudo eselect repository enable localrepo || true" "Enable local repository (ignore errors)"
exec_cmd "sudo mkdir -p /var/db/repos/localrepo/app-misc/end4 || true" "Create directory for the eBuild"
exec_cmd "sudo cp end4-1.0.ebuild /var/db/repos/localrepo/app-misc/end4" "Import the eBuild"
exec_cmd "sudo ebuild /var/db/repos/localrepo/app-misc/end4/${ebuild_name} digest" "Digest the eBuild"
exec_cmd "sudo cp end4-unmasks /etc/portage/package.accept_keywords/end4 && sudo sed -i 's/$/ ~${arch}/' /etc/portage/package.accept_keywords/end4" "Import basic unmasks"
exec_cmd "sudo cp end4-recommended-use-flags /etc/portage/package.use/end4" "Import recommended use flags"
exec_cmd "sudo emerge --sync" "Sync portage"
exec_cmd "sudo emerge --ask --verbose --update --deep --newuse @world" "Update @world"
exec_cmd "sudo emerge --depclean" "Clean dependencies"
exec_cmd "sudo emerge -q app-misc/end4" "Emerge end4 dot-files"
exec_cmd "cp -r ../.config/* ~/.config" "Copy config files over"