summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6310bff450fe77f1daf3a5a5b32bd17c59328fe8 (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: Federico Maria Morrone <aur at morrone dot dev>

pkgname=hwfetch-git
pkgver=r23.e02d38d
pkgrel=1
pkgdesc="A really bad hardware fetch"
arch=('x86_64' 'aarch64')
url="https://github.com/morr0ne/hwfetch"
license=('Apache-2.0')
makedepends=('git' 'cargo' 'just')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=('git+https://github.com/morr0ne/hwfetch.git')
sha256sums=('SKIP')

pkgver() {
	cd "$srcdir/${pkgname%-git}"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd "$srcdir/${pkgname%-git}"
	just build
}

package() {
	cd "$srcdir/${pkgname%-git}"
	just DESTDIR="$pkgdir/" install
}