You are not logged in.

#1 2024-06-14 09:30:07

D3vil0p3r
Member
Registered: 2022-11-05
Posts: 204

subversion on GitHub source for PKGBUILD to retrieve subdir

Hello,
I am maintaining the AUR package https://aur.archlinux.org/packages/nerd … o-extended that it has a big source in terms of size.

I used "svn" to try to get only a specific directory instead of the entire repository to retrieve during the building of the package but the source is on GitHub and I cannot retrieve a specific directory.

The current PKGBUILD is:

# Maintainer: Antonio Voza <vozaanthony {at} gmail {dot} com>
pkgname=nerd-fonts-noto-sans-mono-extended
pkgver=3.1.0
pkgrel=1
pkgdesc="Noto Sans Mono including Condensed variants. Sourced directly from Google, patched with the Nerd Fonts Patcher"
arch=('any')
url='https://www.google.com/get/noto/'
license=('custom')
makedepends=('git' 'python' 'fontforge' 'subversion' 'parallel')
conflicts=('nerd-fonts-noto' 'nerd-fonts-noto-sans-mono')
provides=('nerd-fonts-noto-sans-mono-extended')
source=("svn+https://github.com/googlefonts/noto-fonts/trunk/hinted/ttf/NotoSansMono"
        "font-patcher-$pkgver::https://github.com/ryanoasis/nerd-fonts/releases/download/v$pkgver/FontPatcher.zip" "svn+https://github.com/ryanoasis/nerd-fonts/tags/v$pkgver/src/glyphs")
sha256sums=('SKIP'
            '73cbf6cd548a69d64a5db5910a22b7eddfdee8ae1ae187616ae748e4c7f16ea4'
            'SKIP')

build() {
  # patch fonts
  mkdir -p "$srcdir/patched"
  printf "%b" "\e[1;33m==> WARNING: \e[0mNow patching all fonts. This will take very long...\n"
  # patch fonts quiet with complete single-width glyphs
  parallel -j$(nproc) python font-patcher --glyphdir "$srcdir/glyphs/" -q -c -s {} -out "$srcdir/patched" ::: "$srcdir/NotoSansMono"/*.ttf
}

package() {
  # install fonts
  install -d "$pkgdir/usr/share/fonts/NotoSansMono"
  install -m644 "patched"/*.ttf "$pkgdir/usr/share/fonts/NotoSansMono/"
}

How can I use "svn" to retrieve only the specific subdir https://github.com/notofonts/noto-fonts … toSansMono ?
I need to do the same also for the third source by "svn" to retrieve https://github.com/ryanoasis/nerd-fonts … src/glyphs subdir.

Thanks

Offline

#2 2024-06-14 09:36:54

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,574

Re: subversion on GitHub source for PKGBUILD to retrieve subdir

https://github.com/notofonts/noto-fonts/tree/main wrote:

This repository has been migrated.

New versions of Noto fonts and links to source repositories are available at https://notofonts.github.io

For distributors: to download the whole Noto project, please go to https://github.com/notofonts/notofonts.github.io

To report a bug in a Noto font, please visit https://notofonts.github.io/reporter.html

Maybe the new locations are setup differently ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Online

#3 2024-06-14 09:54:17

D3vil0p3r
Member
Registered: 2022-11-05
Posts: 204

Re: subversion on GitHub source for PKGBUILD to retrieve subdir

Thank you.

About the first source, should I retrieve from https://github.com/notofonts/latin-greek-cyrillic ? It seems the one of NotoSansMono. I think also https://github.com/notofonts/latin-gree … ono-v2.014 can be used.

So, if the source is on GitHub, cannot I use svn to retrieve a subdir?

Last edited by D3vil0p3r (2024-06-14 09:55:29)

Offline

#4 2024-06-14 21:31:06

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,574

Re: subversion on GitHub source for PKGBUILD to retrieve subdir

I don't know if that's possible, but github is in the process of removing svn support .

https://docs.github.com/en/enterprise-s … on-clients
https://github.blog/2023-01-20-sunsetti … n-support/

Do you need specific files ?
If so, use ctrl+F for sans mono on https://notofonts.github.io/ .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Online

#5 2024-06-14 22:43:47

D3vil0p3r
Member
Registered: 2022-11-05
Posts: 204

Re: subversion on GitHub source for PKGBUILD to retrieve subdir

Thank you @Lone_Wolf,
I already gave a look to that NotoSansMono repository and it solves one issue, I can retrieve directly it.

The problem is on the https://github.com/ryanoasis/nerd-fonts source where I need to retrieve files only from "src/glyphs" directory but I don't have idea how to do. By pulling the entire repository takes too much time and space.

Offline

#6 2024-06-15 11:15:35

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,574

Re: subversion on GitHub source for PKGBUILD to retrieve subdir

https://github.com/ryanoasis/nerd-fonts/releases shows there are over 100 separate assets in every release.
Maybe one of those files has the glyhps you need ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Online

#7 2024-06-15 12:57:33

D3vil0p3r
Member
Registered: 2022-11-05
Posts: 204

Re: subversion on GitHub source for PKGBUILD to retrieve subdir

Lone_Wolf wrote:

https://github.com/ryanoasis/nerd-fonts/releases shows there are over 100 separate assets in every release.
Maybe one of those files has the glyhps you need ?

I already gave a quick look to them and by their names they dont seem to be what I need. I opened a request: https://github.com/ryanoasis/nerd-fonts/issues/1656

Offline

Board footer

Powered by FluxBB