summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9e39f7dc91a82b6320a8cf4199497cfe670714a3 (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: Jameson Pugh <imntreal@gmail.com>

pkgname=zeitfetch-git
pkgver=r81.dba1df3
pkgrel=1
pkgdesc="a neofetch implementation in Rust aiming to be near instantaneous, with the least amount of dependencies possible"
arch=('x86_64')
url="https://github.com/nidnogg/zeitfetch"
license=('MIT')
makedepends=('cargo' 'git')
depends=('gcc-libs')
source=("git+https://github.com/nidnogg/zeitfetch.git")
sha256sums=('SKIP')

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

build() {
  cd "${srcdir}/zeitfetch"
  cargo build --release
}

package() {
  cd "${srcdir}/zeitfetch"
  install -Dm755 "target/release/zeitfetch" "$pkgdir/usr/bin/zeitfetch"

  install -Dm644 "README.md" "$pkgdir/usr/share/doc/${pkgname}/README.md"
  install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
}