# Maintainer: Mykhailo Aleksieiev <mishanya.bigimot@gmail.com>
pkgname=gogofetch-git
pkgver=r72.51d32b6
pkgrel=1
pkgdesc="Fetch written in Go with image support"
arch=('x86_64')
url="https://codeberg.org/nekohepott/goGoFetch"
license=('MIT')
depends=('glibc' 'chafa')
makedepends=('git' 'go')
provides=("gogofetch")
conflicts=("gogofetch")
source=("git+https://codeberg.org/nekohepott/goGoFetch.git")
sha256sums=('SKIP')

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

build() {
  cd "goGoFetch"
  export GOPATH="$srcdir/gopath"
  make build
}

package() {
  cd "goGoFetch"
  make DESTDIR="$pkgdir" PREFIX="/usr" install
}
