Package Details: ttf-octicons 19.9.0-1

Git Clone URL: https://aur.archlinux.org/ttf-octicons.git (read-only, click to copy)
Package Base: ttf-octicons
Description: A scalable set of icons handcrafted with <3 by GitHub
Upstream URL: https://octicons.github.com/
Keywords: font octicons ttf
Licenses: MIT
Submitter: WhittlesJr
Maintainer: clebermatheus
Last Packager: clebermatheus
Votes: 5
Popularity: 0.000000
First Submitted: 2017-04-27 00:48 (UTC)
Last Updated: 2024-03-29 17:39 (UTC)

Latest Comments

gbin commented on 2024-04-05 13:45 (UTC) (edited on 2024-04-05 13:54 (UTC) by gbin)

It gives me this one:

==> Making package: ttf-octicons 19.9.0-1 (Fri 05 Apr 2024 08:38:34 AM CDT)
==> Retrieving sources...
  -> Found v19.9.0.tar.gz
==> Validating source files with sha256sums...
    v19.9.0.tar.gz ... Passed
==> Making package: ttf-octicons 19.9.0-1 (Fri 05 Apr 2024 08:38:35 AM CDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found v19.9.0.tar.gz
==> Validating source files with sha256sums...
    v19.9.0.tar.gz ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting v19.9.0.tar.gz with bsdtar
==> Starting prepare()...
Downloading and installing node v16.0.0...
Downloading https://nodejs.org/dist/v16.0.0/node-v16.0.0-linux-x64.tar.xz...
##################################################################################################################################################################################################### 100.0%
Computing checksum with sha256sum
Checksums matched!
Now using node v16.0.0 (npm v7.10.0)
Creating default alias: default -> 16.0.0 (-> v16.0.0)
==> Sources are ready.
ttf-octicons-19.9.0-1: parsing pkg list...
==> Making package: ttf-octicons 19.9.0-1 (Fri 05 Apr 2024 08:38:42 AM CDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Removing existing $pkgdir/ directory...
==> Starting build()...

up to date, audited 1 package in 92ms

found 0 vulnerabilities
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: 'commander@12.0.0',
npm WARN EBADENGINE   required: { node: '>=18' },
npm WARN EBADENGINE   current: { node: 'v16.0.0', npm: '7.10.0' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: 'svgicons2svgfont@12.0.0',
npm WARN EBADENGINE   required: { node: '>=16.15.0' },
npm WARN EBADENGINE   current: { node: 'v16.0.0', npm: '7.10.0' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: 'lru-cache@10.2.0',
npm WARN EBADENGINE   required: { node: '14 || >=16.14' },
npm WARN EBADENGINE   current: { node: 'v16.0.0', npm: '7.10.0' }
npm WARN EBADENGINE }
npm WARN deprecated @npmcli/move-file@2.0.1: This functionality has been moved to @npmcli/fs

added 195 packages, and audited 196 packages in 12s

20 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
Invalid option inputDir: icons is not a directory
==> ERROR: A failure occurred in build().
    Aborting...
error: failed to build 'ttf-octicons-19.9.0-1':

I crudely fixed it doing that:

iff --git a/PKGBUILD b/PKGBUILD
index c06dda4..e809ed1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -33,8 +33,8 @@ build() {
     npm install

   npm install fantasticon
-  mkdir 'font'
-  npm exec -- fantasticon icons -o font -t ttf -n octicons
+  mkdir -p 'font'
+  npm exec -- fantasticon octicons-${pkgver}/icons -o font -t ttf -n octicons
 }

 package() {
@@ -42,5 +42,5 @@ package() {
   install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE

   install -d $pkgdir/usr/share/fonts/TTF/
-  install -m644 font/octicons.ttf $pkgdir/usr/share/fonts/TTF/
+  install -m644 ../font/octicons.ttf $pkgdir/usr/share/fonts/TTF/
 }

dreieck commented on 2023-12-19 14:52 (UTC)

This PKGBUILD downloads stuff in package().

This must not happen.

Can you move all npm-related download stuff into prepare(), all file compilation stuff into build(), and only copying files in place into prepare()?

==> Starting package()...
npm WARN registry Unexpected warning for https://registry.npmjs.org/: Miscellaneous Warning ERR_SOCKET_TIMEOUT: request to https://registry.npmjs.org/@babel%2fcore failed, reason: Socket timeout
npm WARN registry Using stale data from https://registry.npmjs.org/ due to a request error during revalidation.
[..................] - idealTree:yargs: WARN registry Using stale data from https://registry.npmjs.org/ due to a request error during revalidation.
[...]

Regards and thanks for maintaining!

Thaodan commented on 2022-09-30 05:30 (UTC)

Is nvm really needed for this pkg?

clebermatheus commented on 2021-08-02 00:44 (UTC)

@Xaryphon thanks

Xaryphon commented on 2021-08-01 09:35 (UTC) (edited on 2021-08-01 09:36 (UTC) by Xaryphon)

Hello, there seems to be a couple of issues with PKGBUILD:

  • The fantasticon package gets installed to node_modules/node_modules instead of just node_modules
  • node_modules/.bin is not in the path so building will fail
  • (oh and there is a new version out as well)

The following patch fixes the two main issues

diff --git a/PKGBUILD b/PKGBUILD
index 03dbb6b..1f5e4bf 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -16,11 +16,9 @@ package() {
   cd "${srcdir}/octicons-${pkgver}"
   install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE

-  local npmdir=node_modules
-  mkdir -p "$npmdir"
-  npm install --prefix "$npmdir" fantasticon
+  npm install fantasticon
   mkdir 'font'
-  fantasticon icons -o font -t ttf -n octicons
+  npm exec -- fantasticon icons -o font -t ttf -n octicons

   install -d $pkgdir/usr/share/fonts/TTF/
   install -m644 font/octicons.ttf $pkgdir/usr/share/fonts/TTF/

hk3wx commented on 2020-11-02 16:28 (UTC)

There is no xorg-font-utils anymore.

windsorHaze commented on 2020-09-26 21:23 (UTC) (edited on 2020-09-26 21:23 (UTC) by windsorHaze)

https://pastebin.pl/view/1b4ebc30

In the above pastebin I've included the changes to the PKGBUILD necessary to build the aur ttf-octicons without errors. ( at least on my system ( endeavousOS ))

sunng commented on 2020-07-03 02:39 (UTC)

xorg-font-utils is removed from aur, consider to depend on xorg-font-util from extra

WhittlesJr commented on 2017-06-19 13:03 (UTC)

With 5.0.0, they've stopped distributing webfonts. I looked into some SVG to ttf options, and it's doable, but I wont have time for a few days. If someone wants to co-maintain and do this themselves, I'd be all for it.