summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4179eb2670a522b3a9156e0c5c6c2ecb8333a0f9 (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
32
# Maintainer:
# Contributor: Fabio 'Lolix' Loli <lolix@disroot.org>
# Contributor: Luke <Infinitybeond1@protonmail.com>

pkgname=nfetch-git
pkgdesc="A minimal linux fetch utility written in nim"
pkgver=2.r19.g2655d63
pkgrel=2
arch=(x86_64)
url="https://github.com/Infinitybeond1/nfetch-src"
license=(GPL3)
makedepends=(nim git)
provides=(nfetch)
conflicts=(nfetch)
source=("git+https://github.com/Infinitybeond1/nfetch-src.git")
sha256sums=('SKIP')

pkgver() {
  cd "nfetch-src"
  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "nfetch-src"
  nimble build
}

package() {
  cd "nfetch-src"
  install -D nfetch -t "${pkgdir}/usr/bin/"
  install -D config.ini -t "${pkgdir}/usr/share/doc/nfetch"
}