Skip to content

Instantly share code, notes, and snippets.

@aequabit
Created August 10, 2025 07:57
Show Gist options
  • Select an option

  • Save aequabit/374159034dd14f54f9ee6e849afca8af to your computer and use it in GitHub Desktop.

Select an option

Save aequabit/374159034dd14f54f9ee6e849afca8af to your computer and use it in GitHub Desktop.
fastfetch - Show Xserver vendor
# JUST FOR TESTING, SEE AUR PACKAGE: https://aur.archlinux.org/packages/fastfetch-git
pkgname=fastfetch-git
pkgver=2.49.0.r99.6f78e2f
pkgrel=1
pkgdesc="Like neofetch, but much faster because written in c"
arch=(x86_64 i686 pentium4 armv7h aarch64 riscv64)
url="https://github.com/fastfetch-cli/fastfetch"
license=(MIT)
depends=(glibc gcc-libs yyjson)
makedepends=(
chafa
cmake
dbus
dconf
ddcutil
directx-headers
git
imagemagick
libnm
libpulse
libxcb
libxrandr
mesa
ocl-icd
opencl-headers
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'
'directx-headers: GPU detection in WSL'
'glib2: Output for values that are only stored in GSettings'
'imagemagick: Image output using sixel or kitty graphics protocol'
'libnm: Wifi detection'
'libpulse: Sound detection'
'mesa: Needed by the OpenGL module for gl context creation.'
'libxrandr: Multi monitor support'
'ocl-icd: OpenCL module'
'hwdata: 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'
'libdrm: Displays detection'
)
provides=(fastfetch)
conflicts=(fastfetch)
source=("git+https://github.com/aequabit/fastfetch.git#branch=dev")
sha256sums=("SKIP")
pkgver() {
cd fastfetch
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cmake -B build -S "fastfetch" -Wno-dev \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_TESTS=ON \
-DENABLE_SQLITE3=OFF \
-DENABLE_RPM=OFF \
-DENABLE_IMAGEMAGICK6=OFF \
-DENABLE_SYSTEM_YYJSON=ON \
cmake --build build
}
check() {
ctest --test-dir build --output-on-failure
}
package() {
DESTDIR="${pkgdir}" cmake --install build
install -D fastfetch/LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment