summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3554e1cbffe4df80a127c062f77829b5b891bda4 (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: ReubenPercy/reubenpercival14@gmail.com
pkgname=rustfetch-git
pkgver=r3.9ad682c
pkgrel=1
pkgdesc="A fast system information fetch tool written in Rust"
arch=('x86_64' 'i686' 'aarch64')
url="https://codeberg.org/akirathelinuxguy/rustfetch"
license=('MIT')
depends=()
makedepends=('rust' 'git')
provides=('rustfetch')
conflicts=('rustfetch')
source=("git+https://github.com/akirathelinuxguy/rustfetch.git")
sha256sums=('SKIP')

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

build() {
    cd rustfetch
    rustc -O rustfetch.rs
}

package() {
    cd rustfetch
    install -Dm755 rustfetch "$pkgdir/usr/bin/rustfetch"
}