blob: 843e13efeb55bea80cb945a7711aab23be9a97f8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# Maintainer: Linus Dierheimer <Linus@Dierheimer.de>
pkgname=fastfetch-git
pkgver=r460.0c7a415
pkgrel=1
pkgdesc="Like neofetch, but much faster because written in c"
arch=("any")
url="https://github.com/LinusDierheimer/fastfetch"
license=("MIT")
depends=()
makedepends=(
"git"
"cmake"
"pciutils"
"libxrandr" # Depends on libX11, which headers are also needed
"dconf" # Depends on glib2, which headers are also needed
"wayland"
"xfconf"
# "rpm-tools"
)
optdepends=(
"pciutils: GPU output"
"libx11: Basic resolution output"
"libxrandr: Multi monitor and refresh rate support for resolution output"
"wayland: Native wayland support for resolution output"
"glib2: Output for values that are only stored in GSettings"
"dconf: Output for values that are only stored in DConf"
"xfconf: XFWM theme + xfce-terminal font"
# "rpm-tools: rpm package count"
)
_provides_and_conflicts=(
"fastfetch"
"fastfetch-garuda"
"flashfetch"
)
provides=("${_provides_and_conflicts[@]}")
conflicts=("${_provides_and_conflicts[@]}")
source=("git+https://github.com/LinusDierheimer/fastfetch.git")
sha256sums=("SKIP")
pkgver() {
cd "fastfetch/"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build()
{
cd "${srcdir}/fastfetch"
mkdir -p build/
cd build/
cmake ..
cmake --build .
}
package() {
cd ${srcdir}/fastfetch
install -D "build/fastfetch" "${pkgdir}/usr/bin/fastfetch"
install -D "build/flashfetch" "${pkgdir}/usr/bin/flashfetch"
install -D "completions/bash" "${pkgdir}/usr/share/bash-completion/completions/fastfetch"
install -Dd "${pkgdir}/usr/share/fastfetch/presets/"
for file in presets/*; do
install -D "$file" "${pkgdir}/usr/share/fastfetch/presets/"
done
}
|