diff options
author | Luis Martinez | 2022-12-22 01:37:01 -0600 |
---|---|---|
committer | Luis Martinez | 2022-12-22 01:37:01 -0600 |
commit | 4f51590d11d0fdf94f3a2ee934a2845d4c8f192e (patch) | |
tree | d4d05aa32a742aa8e6fc3c44669ca04b6c375013 | |
parent | 4a2b825742ca66b8a4febfad308a90b2245f9c63 (diff) | |
download | aur-4f51590d11d0fdf94f3a2ee934a2845d4c8f192e.tar.gz |
package cleanup
-rw-r--r-- | .SRCINFO | 9 | ||||
-rw-r--r-- | PKGBUILD | 33 |
2 files changed, 22 insertions, 20 deletions
@@ -1,15 +1,16 @@ pkgbase = nfetch-git - pkgdesc = A minimal linux fetch utility written in nim + pkgdesc = Minimal Linux fetch utility written in nim pkgver = 2.r19.g2655d63 - pkgrel = 2 + pkgrel = 3 url = https://github.com/Infinitybeond1/nfetch-src arch = x86_64 license = GPL3 - makedepends = nim makedepends = git + makedepends = nimble + depends = glibc provides = nfetch conflicts = nfetch - source = git+https://github.com/Infinitybeond1/nfetch-src.git + source = nfetch::git+https://github.com/Infinitybeond1/nfetch-src sha256sums = SKIP pkgname = nfetch-git @@ -1,32 +1,33 @@ -# Maintainer: +# Maintainer: Luis Martinez <luis dot martinez at disroot dot org> # Contributor: Fabio 'Lolix' Loli <lolix@disroot.org> # Contributor: Luke <Infinitybeond1@protonmail.com> pkgname=nfetch-git -pkgdesc="A minimal linux fetch utility written in nim" +_pkg="${pkgname%-git}" +pkgdesc="Minimal Linux fetch utility written in nim" pkgver=2.r19.g2655d63 -pkgrel=2 -arch=(x86_64) +pkgrel=3 +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") +license=('GPL3') +depends=('glibc') +makedepends=('git' 'nimble') +provides=("$_pkg") +conflicts=("$_pkg") +source=("$_pkg::git+$url") sha256sums=('SKIP') pkgver() { - cd "nfetch-src" - git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' + git -C "$_pkg" describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' } build() { - cd "nfetch-src" - nimble build + cd "$_pkg" + nimble -y build -d:release } package() { - cd "nfetch-src" - install -D nfetch -t "${pkgdir}/usr/bin/" - install -D config.ini -t "${pkgdir}/usr/share/doc/nfetch" + cd "$_pkg" + install -Dv "$_pkg" -t "$pkgdir/usr/bin/" + install -Dvm644 config.ini -t "$pkgdir/usr/share/doc/$pkgname/" } |