summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 045024304279e0ea36d45182668913f00a57bd2a (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
#Maintainer: Maxb0tbeep <max@polygonal.place)
pkgname=bestfetch-git
pkgrel=1
pkgver=r65.ac98fb2
pkgdesc="a customizable, beautiful, and blazing fast system fetch, powered by nim"
arch=(x86_64)
url="https://gitlab.com/Maxb0tbeep/bestfetch"
license=('GPLv3')
makedepends=(nim git)
provides=(bestfetch)
conflicts=(bestfetch)
source=("git+https://gitlab.com/Maxb0tbeep/bestfetch")
md5sums=(SKIP)

pkgver() {
  cd "$srcdir/bestfetch"
  # Generate a version based on the latest commit hash
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd "$srcdir/bestfetch"
	nimble build -d:release
}

package() {
	cd "$srcdir/bestfetch"
	install -Dm755 "build/bestfetch" "$pkgdir/usr/bin/bestfetch"
}