Package Details: god-git 1.10.r1.gf7c054c-1

Git Clone URL: https://aur.archlinux.org/god-git.git (read-only, click to copy)
Package Base: god-git
Description: Utility for simplifying the Git usage (git)
Upstream URL: https://github.com/orhun/god
Keywords: git git-commands git-tools
Licenses: GPL3
Conflicts: god
Provides: god
Submitter: op_old
Maintainer: orhun
Last Packager: orhun
Votes: 1
Popularity: 0.000000
First Submitted: 2019-06-01 16:03 (UTC)
Last Updated: 2020-11-25 15:48 (UTC)

Dependencies (2)

Required by (0)

Sources (1)

Latest Comments

op_old commented on 2019-06-02 16:10 (UTC)

I don't see this changes that important. But I'll check them out later.

yochananmarqos commented on 2019-06-02 14:29 (UTC) (edited on 2019-06-02 14:30 (UTC) by yochananmarqos)

Again, please see the VCS package guidelines, especially the pkgver() function. You can find PKGBUILD templates here and also in /usr/share/pacman.

This is what your PKGBUILD should look like:

# Maintainer: KeyLo99 <keylo99official at gmail dot com>

pkgname=god-git
pkgdesc="Utility for simplifying the Git usage"
pkgver=1.3.r0.1279eee
pkgrel=1
arch=('any')
url="https://github.com/KeyLo99/god"
license=('GPL3')
depends=('git')
makedepends=('go>=1.7')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=('git://github.com/KeyLo99/god.git')
sha256sums=('SKIP')

pkgver() {
  cd "$srcdir/${pkgname%-git}"
  printf "%s" "$(git describe --long --tags | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
}

build() {
  cd "$srcdir/${pkgname%-git}"
  go get -d ./...
  go build \
    -gcflags "all=-trimpath=$PWD" \
    -asmflags "all=-trimpath=$PWD" \
    -ldflags "-extldflags $LDFLAGS" \
    -o "${pkgname%-git}" .
}

package() {
  cd "$srcdir/${pkgname%-git}"
  install -Dm755 "${pkgname%-git}" "$pkgdir/usr/local/bin/${pkgname%-git}"
}