Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add chafa and fastfetch #26240

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions recipes/chafa/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env bash

set -euo pipefail

./configure \
--disable-debug \
--disable-dependency-tracking \
--prefix="${PREFIX}" \
--disable-silent-rules
make install
50 changes: 50 additions & 0 deletions recipes/chafa/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{% set name = "chafa" %}
{% set version = "1.14.0" %}

package:
name: {{ name|lower }}
version: {{ version }}

source:
url: https://github.com/hpjansson/{{ name }}/releases/download/{{ version }}/chafa-{{ version }}.tar.xz
sha256: 670e55c28b5ecd4c8187bd97f0898762712a480ec8ea439dae4a4836b178e084

build:
number: 0

requirements:
build:
- {{ compiler('c') }}
# - {{ stdlib('c') }}
- pkg-config
- make
host:
- freetype
- glib
- libjpeg-turbo
- librsvg
- libtiff
- libwebp
run:
- freetype
- glib
- libjpeg-turbo
- librsvg
- libtiff
- libwebp

test:
commands:
- chafa --version

about:
home: https://hpjansson.org/chafa
summary: Versatile and fast Unicode/ASCII/ANSI graphics renderer
license: LGPL-3.0-or-later
license_family: LGPL
license_file: COPYING
dev_url: https://github.com/hpjansson/chafa

extra:
recipe-maintainers:
- pavelzw
12 changes: 12 additions & 0 deletions recipes/fastfetch/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env bash

set -euo pipefail

cmake -S . -B build \
-DCMAKE_INSTALL_PREFIX="${PREFIX}" \
-DENABLE_VULKAN=ON \
-DENABLE_IMAGEMAGICK7=ON \
-DENABLE_IMAGEMAGICK6=OFF \
-DCMAKE_INSTALL_SYSCONFDIR="${PREFIX}/etc"
cmake --build build
cmake --install build
5 changes: 5 additions & 0 deletions recipes/fastfetch/conda_build_config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
docker_image: # [x86_64 and linux64]
- quay.io/condaforge/linux-anvil-alma-x86_64:8 # [x86_64 and linux64]

c_stdlib_version: # [linux]
- "2.18" # [linux]
60 changes: 60 additions & 0 deletions recipes/fastfetch/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{% set name = "fastfetch" %}
{% set version = "2.11.2" %}

package:
name: {{ name|lower }}
version: {{ version }}

source:
url: https://github.com/{{ name }}-cli/{{ name }}/archive/refs/tags/{{ version }}.tar.gz
sha256: de5dda91077d923780407e3c738e3afcf052025298d449d589b7b32fe4e8b9f2

build:
number: 0
skip: True # [win]

requirements:
build:
- {{ compiler('c') }}
- {{ compiler('cxx') }}
- {{ stdlib('c') }}
- pkg-config
- cmake
- make
# used in cmake
- python
host:
# https://github.com/fastfetch-cli/fastfetch/wiki/Dependencies
- chafa
- glib
- imagemagick 7.*
- libvulkan-loader
- libvulkan-headers
- sqlite
- zlib
- wayland # [linux]
- xorg-libx11 # [linux]
- libxcb # [linux]
- xorg-libxrandr # [linux]
- libdrm # [linux]
- dbus # [linux]
- ocl-icd # [linux]
- {{ cdt('pciutils-devel') }} # [linux]
# no run dependencies because they are only loaded if present

test:
commands:
- fastfetch --version
- fastfetch

about:
home: https://github.com/fastfetch-cli/fastfetch
summary: Like neofetch, but much faster because written mostly in C
license: MIT
license_family: MIT
license_file: LICENSE
dev_url: https://github.com/fastfetch-cli/fastfetch

extra:
recipe-maintainers:
- pavelzw
Loading