summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 795973bf7f45230800204c16eb507d5465b2d874 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Maintainer: mekb https://github.com/mekb-turtle
pkgname=mekfetch-git
pkgver=r20.9b87193
pkgrel=1
pkgdesc='Simple neofetch alternative written in C'
arch=('any')
url="https://github.com/mekb-turtle/mekfetch"
source=("mekfetch::git+${url}.git")
makedepends=('git')
sha256sums=(SKIP)
optdepends=('nerd-fonts: Nerd font support')
package() {
	install -Dm755 "$srcdir/mekfetch/mekfetch" "$pkgdir/usr/bin/mekfetch"
}
build() {
	make -C "$srcdir/mekfetch"
}
pkgver() {
	cd "$srcdir/mekfetch"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}