end-4 / dots-hyprland

i hate minimalism so...
https://end-4.github.io/dots-hyprland-wiki/en/
GNU General Public License v3.0
3.94k stars 267 forks source link

[important] Problem with the package "ttf-rubik-vf" when installing through the installer #839

Open MNkoder opened 4 days ago

MNkoder commented 4 days ago

I think there is a problem with this file, ttf-rubik-vf, I was installing the dots through the installer, but this package had some errors, I'll put the errors i got below,

AUR Explicit (1): ttf-rubik-vf-2.3.0-1
:: PKGBUILD up to date, skipping download: ttf-rubik-vf
  1 ttf-rubik-vf                     (Build Files Exist)
==> Packages to cleanBuild?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> 
  1 ttf-rubik-vf                     (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> 
==> Making package: ttf-rubik-vf 2.3.0-1 (Sunday 29 September 2024 02:43:18 PM)
==> Retrieving sources...
  -> Downloading Rubik[wght].ttf...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (22) The requested URL returned error: 404
==> ERROR: Failure while downloading https://github.com/googlefonts/rubik/raw/e337a5f69a9bea30e58d05bd40184d79cc099628/fonts/variable/Rubik[wght].ttf
    Aborting...
 -> error downloading sources: /home/em-en/.cache/yay/ttf-rubik-vf 
     context: exit status 1 

:: (1/1) Parsing SRCINFO: ttf-rubik-vf

==> Making package: ttf-rubik-vf 2.3.0-1 (Sunday 29 September 2024 02:43:26 PM)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading Rubik[wght].ttf...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:05 --:--:--     0
curl: (22) The requested URL returned error: 404
==> ERROR: Failure while downloading https://github.com/googlefonts/rubik/raw/e337a5f69a9bea30e58d05bd40184d79cc099628/fonts/variable/Rubik[wght].ttf
    Aborting...
 -> error making: ttf-rubik-vf-exit status 1
 -> Failed to install the following packages. Manual intervention is required:
ttf-rubik-vf - exit status 1
[./install.sh]: Command "yay -S --needed --noconfirm --asdeps adw-gtk-theme-git qt5ct qt5-wayland fontconfig ttf-readex-pro ttf-jetbrains-mono-nerd ttf-material-symbols-variable-git ttf-space-mono-nerd ttf-rubik-vf ttf-gabarito-git fish foot starship" has failed.
You may need to resolve the problem manually BEFORE repeating this command.
MNkoder commented 4 days ago

I also tried to manually make the package through the aur repo, but that failed too

x4ndr0m3d4x commented 4 days ago

Had the same issue, resolved it by making and installing the ttf-rubik-vf package manually using this modified PKGBUILD file:

# Maintainer: haxibami <contact at haxibami dot net>

pkgname=ttf-rubik-vf
pkgver=2.3.0
pkgrel=1
_commit=e337a5f69a9bea30e58d05bd40184d79cc099628
pkgdesc="A sans serif font family with slightly rounded corners: variable font version"
arch=("any")
url="https://github.com/googlefonts/rubik"
license=("OFL")
source=(
      "${url}/blob/${_commit}/fonts/variable/Rubik%5Bwght%5D.ttf"
      "${url}/blob/${_commit}/fonts/variable/Rubik-Italic%5Bwght%5D.ttf"
      "${url}/blob/${_commit}/OFL.txt"
      "${url}/blob/${_commit}/AUTHORS.txt"
      "${url}/blob/${_commit}/CONTRIBUTORS.txt"
)

sha256sums=('93d17f662fdb0291ce55a9e9af408f2ad0d2bbf2efe6664bef97d8933d8b07f3'
            '0c1864e40441a6c98755298313124add944ddcb8a99530f7af35384b77dd6491'
            '3e9cc4fa69cfae610fe214ecc88b8da954f945111d46fd16d4a003821f6ed9ac'
            'd78c5842da21134acc69e64d5098fb8c51192d974ea3ddd2fb279ea695e195ef'
            'b896820ec04e66252c409730b4091ac2986c645f0027fe6d76dceba46adb8f0f')

package() {
      install -d ${pkgdir}/usr/share/fonts/TTF
      install -m644 ${srcdir}/*.ttf ${pkgdir}/usr/share/fonts/TTF/
      cd ${srcdir}
      install -D -m644 -t ${pkgdir}/usr/share/licenses/${pkgname}/ OFL.txt AUTHORS.txt CONTRIBUTORS.txt
}

Notice the 'raw' part of the URL replaced by 'blob' as stated in the GitHub docs and the [ and ] characters escaped. I also had to change the hash sums using the updpkgsums command in same the directory as the PKGBUILD file (source, requires the pacman-contrib package) before installing. Rerun the script after that and you should be fine.

zero-stacks commented 3 days ago

this helped me thanks @x4ndr0m3d4x

IlichiNiKoka commented 3 days ago

well……I suggest skip this park and set your font another one post-installation

MNkoder commented 2 days ago

well……I suggest skip this park and set your font another one post-installation

hey! would be really hwlpful if you could guide me on how to do that.. like does this mean i can use any other font instead of end's one as the whole ags hyprland font?

IlichiNiKoka commented 2 days ago

well……I suggest skip this park and set your font another one post-installation

hey! would be really hwlpful if you could guide me on how to do that.. like does this mean i can use any other font instead of end's one as the whole ags hyprland font?

yes you could. check this command: gsettings set org.gnome.desktop.interface font-name 'font_name font_size' for example: gsettings set org.gnome.desktop.interface font-name 'Rubik 11' change rubik into another font you like. just ignore the rubik font and continue your installation, you can install it afterwards on google's site.

MNkoder commented 2 days ago

thanks for the help🙂 .. now its applied at most of the places, but still theres places where its not applied properly, any idea?

Kalidude69 commented 11 hours ago

thanks for the help🙂 .. now its applied at most of the places, but still theres places where its not applied properly, any idea?

Hey! You could just use nwg-look or LXAppearance—these are GUI tools for changing GTK themes, icon themes, and fonts. They work universally across all GTK apps. For Qt-based apps, though, you'd need KDESettings. Package is named systemsettings..change the fonts there respectively for a more uniform look....assuming you're on Hyprland, just install a font using pacman or yay, and then rebuild the font cache using fc-cache -f -v .All set! 😄

MNkoder commented 11 hours ago

thanks for the help🙂 .. now its applied at most of the places, but still theres places where its not applied properly, any idea?

Hey! You could just use nwg-look or LXAppearance—these are GUI tools for changing GTK themes, icon themes, and fonts. They work universally across all GTK apps. For Qt-based apps, though, you'd need KDESettings. Package is named systemsettings..change the fonts there respectively for a more uniform look....assuming you're on Hyprland, just install a font using pacman or yay, and then rebuild the font cache using fc-cache -f -v .All set! 😄

hey thanks! will that update the ags fonts too?