summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: de959c273f5a02494a6d98604e599821bf071ca7 (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
33
34
# Contributor: Luis Martinez <luis dot martinez at disroot dot org>
# Contributor: Fabio 'Lolix' Loli <lolix@disroot.org>
# Contributor: Luke <Infinitybeond1@protonmail.com>

pkgname=nfetch-git
_pkg="${pkgname%-git}"
pkgdesc="Minimal Linux fetch utility written in nim"
pkgver=2.r19.g2655d63
pkgrel=5
arch=('x86_64')
url="https://github.com/Infinitybeond1/nfetch-src"
license=('GPL-3.0-only')
depends=('gcc-libs' 'glibc')
makedepends=('git' 'nimble')
provides=("$_pkg")
conflicts=("$_pkg")
source=("$_pkg::git+$url")
sha256sums=('SKIP')

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

build() {
	cd "$_pkg"
	nimble -y build -d:release
}

package() {
	cd "$_pkg"
	install -Dv "$_pkg" -t "$pkgdir/usr/bin/"
	## upstream has hard-coded this path; do not change
	install -Dvm644 config.ini -t "$pkgdir/usr/share/doc/$_pkg/"
}