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

pkgname=shinyfetch-git
pkgver=r21.9fcba1c
pkgrel=1
pkgdesc="The shiniest hardware fetch"
arch=('x86_64' 'aarch64')
url="https://github.com/morr0ne/shinyfetch"
license=('Apache-2.0')
groups=('shinyfetch')
depends=('erlang-nox')
makedepends=('git' 'cargo' 'just' 'gleam' 'rebar3')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=('git+https://github.com/morr0ne/shinyfetch.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-release
}

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