56 lines
2.0 KiB
Bash
56 lines
2.0 KiB
Bash
name='fastfetch'
|
|
version='2.40.1'
|
|
release='1'
|
|
desc='Fastfetch is a neofetch-like tool for fetching system information and displaying them in a pretty way. It is written mainly in C, with performance and customizability in mind. Currently, Linux, Android, FreeBSD, MacOS and Windows 7+ are supported.'
|
|
homepage='https://github.com/fastfetch-cli/fastfetch'
|
|
maintainer="Евгений Храмов <xpamych@yandex.ru>"
|
|
architectures=('all')
|
|
license=('MIT')
|
|
provides=('fastfetch')
|
|
conflicts=('fastfetch' 'fastfetch-git')
|
|
|
|
build_deps=(
|
|
'cmake'
|
|
'gcc-c++'
|
|
)
|
|
opt_deps=('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'
|
|
'NetworkManager-libnm: Wifi detection'
|
|
'pulseaudio-libs: Sound detection'
|
|
'mesa-vulkan-drivers: Needed by the OpenGL module for gl context creation.'
|
|
'libXrandr: Multi monitor support'
|
|
'ocl-icd: OpenCL module'
|
|
'hwdata: GPU output'
|
|
'vulkan-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')
|
|
|
|
sources=("https://github.com/fastfetch-cli/fastfetch/archive/refs/tags/${version}.tar.gz")
|
|
checksums=('SKIP')
|
|
|
|
build() {
|
|
cd $srcdir/$name-$version
|
|
cmake -DCMAKE_BUILD_TYPE=Release
|
|
cmake --build . --target fastfetch -j $(($(nproc) - 1))
|
|
}
|
|
|
|
package() {
|
|
cd $srcdir/$name-$version
|
|
install-binary ./fastfetch
|
|
install-license ./LICENSE fastfetch/LICENSE
|
|
install-manual ./fastfetch.1
|
|
./ completion fish | install-completion fish fastfetch
|
|
install-completion bash fastfetch < ./completions/fastfetch.bash
|
|
install-completion zsh fastfetch < ./completions/fastfetch.zsh
|
|
}
|
|
|
|
files() {
|
|
echo ./usr/bin/fastfetch
|
|
printf '"%s" ' ./usr/share/**/*
|
|
}
|