Skip to content
Snippets Groups Projects
Commit 6b0946bc authored by Carter Li's avatar Carter Li
Browse files

testing/fastfetch: new aport

parent 63d087b9
No related branches found
No related tags found
1 merge request!59449testing/fastfetch: new aport
# Contributor: Carter Li <zhangsongcui@live.cn>
# Maintainer: Carter Li <zhangsongcui@live.cn>
pkgname=fastfetch
pkgver=2.7.0
pkgrel=0
pkgdesc="Like neofetch, but much faster because written mostly in C."
url="https://github.com/fastfetch-cli/fastfetch"
arch="all"
license="MIT"
makedepends="
cmake samurai
yyjson-dev
yyjson-static
pciutils-dev
vulkan-loader-dev
libxcb-dev
wayland-dev
libdrm-dev
dconf-dev
imagemagick-dev
chafa-dev
zlib-dev
dbus-dev
mesa-dev
opencl-dev
xfconf-dev
sqlite-dev
networkmanager-dev
pulseaudio-dev
ddcutil-dev
"
subpackages="
$pkgname-doc
$pkgname-bash-completion
$pkgname-fish-completion
"
source="$pkgname-$pkgver.tar.gz::https://github.com/fastfetch-cli/fastfetch/archive/refs/tags/$pkgver.tar.gz"
prepare() {
default_prepare
rm -rf src/3rdparty/yyjson
}
build() {
if [ "$CBUILD" != "$CHOST" ]; then
local crossopts="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
fi
cmake -B build -G Ninja \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_BUILD_TYPE=Release \
-DENABLE_SYSTEM_YYJSON=ON \
-DENABLE_DIRECTX_HEADERS=OFF \
$crossopts
cmake --build build --target fastfetch --target flashfetch
}
check() {
build/fastfetch --list-features
build/fastfetch -c presets/ci.jsonc
build/fastfetch -c presets/ci.jsonc --format json
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
sha512sums="
e20e2c6dfa6a8805460eece02afd9ced29e894b6b944537e95e3a2cbcbcfcb1ef356bfc0ccdbcb8eee1f09725a1f7eb71dcecfbbca39713880b428956f37696f fastfetch-2.7.0.tar.gz
"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment