summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ab452d4f8fdae2e43409890f07af72c1d91c3911 (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
pkgname=gut-git
pkgver=0.3.0.r4.g83bd2e3
pkgrel=1
pkgdesc="An alternative git CLI for Windows, macOS, and Linux"
arch=(any)
url="https://gut-cli.dev"
license=("MIT")
makedepends=("go")
source=("git+https://github.com/julien040/gut")
sha256sums=("SKIP")

pkgver() {
  cd gut
  git describe --long --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd gut
  go build
}

package() {
  install -Dm755 "${srcdir}/gut/gut" "${pkgdir}/usr/bin/gut"
}