pkg: add fastfetch

This commit is contained in:
blek 2023-09-14 18:37:50 +10:00
parent 50188259ab
commit 97d916f6b4
Signed by: blek
GPG Key ID: 14546221E3595D0C
2 changed files with 100 additions and 0 deletions

View File

@ -0,0 +1,48 @@
pkgbase = fastfetch
pkgdesc = Like Neofetch, but much faster because written in C
pkgver = 2.0.5
pkgrel = 1
url = https://github.com/fastfetch-cli/fastfetch
arch = x86_64
arch = aarch64
arch = riscv64
license = MIT
makedepends = chafa
makedepends = cmake
makedepends = dbus
makedepends = dconf
makedepends = ddcutil
makedepends = imagemagick
makedepends = libnm
makedepends = libpulse
makedepends = libxcb
makedepends = libxrandr
makedepends = mesa
makedepends = ocl-icd
makedepends = opencl-headers
makedepends = pciutils
makedepends = vulkan-headers
makedepends = vulkan-icd-loader
makedepends = wayland
makedepends = xfconf
makedepends = zlib
depends = gcc-libs
optdepends = chafa: Image output as ascii art
optdepends = dbus: Bluetooth, Player & Media detection
optdepends = dconf: Needed for values that are only stored in DConf + Fallback for GSettings
optdepends = ddcutil: Brightness detection of external displays
optdepends = glib2: Output for values that are only stored in GSettings
optdepends = imagemagick: Image output using sixel or kitty graphics protocol
optdepends = libnm: Used for Wifi detection
optdepends = libpulse: Used for Sound detection
optdepends = mesa: Needed by the OpenGL module for gl context creation.
optdepends = libxrandr: Multi monitor support
optdepends = ocl-icd: OpenCL module
optdepends = pciutils: GPU output
optdepends = vulkan-icd-loader: Vulkan module & fallback for GPU output
optdepends = xfconf: Needed for XFWM theme and XFCE Terminal font
optdepends = zlib: Faster image output when using kitty graphics protocol
source = fastfetch-2.0.5.tar.gz::https://github.com/fastfetch-cli/fastfetch/archive/refs/tags/2.0.5.tar.gz
sha256sums = 8046eb856fd95d9896220238c966125fb05e451e65d8cfc7eb25483767612235
pkgname = fastfetch

View File

@ -0,0 +1,52 @@
# Maintainer: blek! <me@blek.codes>
pkgname=fastfetch
pkgver=2.0.5
pkgrel=1
pkgdesc="Like Neofetch, but much faster because written in C"
arch=('x86_64' 'aarch64' 'riscv64')
url="https://github.com/fastfetch-cli/fastfetch"
license=('MIT')
depends=('gcc-libs')
makedepends=('chafa' 'cmake' 'dbus' 'dconf' 'ddcutil' 'imagemagick' 'libnm' 'libpulse'
'libxcb' 'libxrandr' 'mesa' 'ocl-icd' 'opencl-headers' 'pciutils'
'vulkan-headers' 'vulkan-icd-loader' 'wayland' 'xfconf' 'zlib')
optdepends=(
'chafa: Image output as ascii art'
'dbus: Bluetooth, Player & Media detection'
'dconf: Needed for values that are only stored in DConf + Fallback for GSettings'
'ddcutil: Brightness detection of external displays'
'glib2: Output for values that are only stored in GSettings'
'imagemagick: Image output using sixel or kitty graphics protocol'
'libnm: Used for Wifi detection'
'libpulse: Used for Sound detection'
'mesa: Needed by the OpenGL module for gl context creation.'
'libxrandr: Multi monitor support'
'ocl-icd: OpenCL module'
'pciutils: GPU output'
'vulkan-icd-loader: Vulkan module & fallback for GPU output'
'xfconf: Needed for XFWM theme and XFCE Terminal font'
'zlib: Faster image output when using kitty graphics protocol'
)
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/$pkgver.tar.gz")
sha256sums=('8046eb856fd95d9896220238c966125fb05e451e65d8cfc7eb25483767612235')
build() {
cmake -B build -S "$pkgname-$pkgver" \
-DCMAKE_BUILD_TYPE='RelWithDebInfo' \
-DCMAKE_INSTALL_PREFIX='/usr' \
-DBUILD_TESTS='ON' \
-DENABLE_SQLITE3='OFF' \
-DENABLE_RPM='OFF' \
-DENABLE_IMAGEMAGICK6='OFF' \
-DENABLE_DDCUTIL='ON' \
-Wno-dev
cmake --build build
}
check() {
ctest --test-dir build --output-on-failure
}
package() {
DESTDIR="$pkgdir" cmake --install build
}