From 770c1e1039f448aa6128830d4e6b97cb5f8de210 Mon Sep 17 00:00:00 2001 From: Pavel Zwerschke Date: Sat, 4 May 2024 13:11:05 +0200 Subject: [PATCH] Add chafa and fastfetch --- recipes/chafa/build.sh | 10 ++++ recipes/chafa/meta.yaml | 50 +++++++++++++++++++ recipes/fastfetch/build.sh | 12 +++++ recipes/fastfetch/conda_build_config.yaml | 5 ++ recipes/fastfetch/meta.yaml | 60 +++++++++++++++++++++++ 5 files changed, 137 insertions(+) create mode 100644 recipes/chafa/build.sh create mode 100644 recipes/chafa/meta.yaml create mode 100755 recipes/fastfetch/build.sh create mode 100644 recipes/fastfetch/conda_build_config.yaml create mode 100644 recipes/fastfetch/meta.yaml diff --git a/recipes/chafa/build.sh b/recipes/chafa/build.sh new file mode 100644 index 0000000000000..7c2007a72c811 --- /dev/null +++ b/recipes/chafa/build.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +set -euo pipefail + +./configure \ + --disable-debug \ + --disable-dependency-tracking \ + --prefix="${PREFIX}" \ + --disable-silent-rules +make install diff --git a/recipes/chafa/meta.yaml b/recipes/chafa/meta.yaml new file mode 100644 index 0000000000000..a715a75e46c7d --- /dev/null +++ b/recipes/chafa/meta.yaml @@ -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 diff --git a/recipes/fastfetch/build.sh b/recipes/fastfetch/build.sh new file mode 100755 index 0000000000000..679c4b86535d8 --- /dev/null +++ b/recipes/fastfetch/build.sh @@ -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 diff --git a/recipes/fastfetch/conda_build_config.yaml b/recipes/fastfetch/conda_build_config.yaml new file mode 100644 index 0000000000000..cc79ace7eeb6b --- /dev/null +++ b/recipes/fastfetch/conda_build_config.yaml @@ -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] diff --git a/recipes/fastfetch/meta.yaml b/recipes/fastfetch/meta.yaml new file mode 100644 index 0000000000000..09999724c0366 --- /dev/null +++ b/recipes/fastfetch/meta.yaml @@ -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