Package Details: git-user v2.0.6-1

Git Clone URL: https://aur.archlinux.org/git-user.git (read-only, click to copy)
Package Base: git-user
Description: Git plugin that allows you to save multiple user profiles and set them as project defaults
Upstream URL: https://github.com/gesquive/git-user.git
Keywords: git
Licenses: MIT
Submitter: rage28
Maintainer: bart
Last Packager: bart
Votes: 1
Popularity: 0.000000
First Submitted: 2018-06-08 16:14 (UTC)
Last Updated: 2022-12-01 13:57 (UTC)

Required by (0)

Sources (1)

Latest Comments

rage28 commented on 2022-12-01 13:45 (UTC)

@bart. Cheers!

bart commented on 2022-12-01 13:42 (UTC)

@rage28 This is fine by me. Thanks for doing the maintenance work until now!

rage28 commented on 2022-11-30 16:32 (UTC)

Hi bart,

I don't plan on maintaining this package anymore. Would it be fine if I transferred the ownership to you?

bart commented on 2022-11-30 10:12 (UTC)

Hi,

I have created an update PKGBUILD that updates to the latest version and also follows the updated packaging guidelines for GO. Would you mind updating the package?

Thanks

# Maintainer: Raghavendra Bhuvan <rage28@googlemail.com>
pkgname=git-user
pkgver=v2.0.6
pkgrel=1
pkgdesc=" Git plugin that allows you to save multiple user profiles and set them as project defaults"
arch=('x86_64')
_baseurl="https://github.com/gesquive/${pkgname}"
url="${_baseurl}.git"
depends=('glibc')
source=("${pkgname}-${pkgver}::${_baseurl}/archive/refs/tags/${pkgver}.tar.gz")
license=('MIT')
sha256sums=('abf1d8e78c9e9a89555519ec755dfe2516fe9b1e3622ca89692cd6782e0fdc6e')

prepare() {
  cd "$pkgname-${pkgver#v}"
  mkdir -p build/
}

build() {
  cd "$pkgname-${pkgver#v}"
  export CGO_CPPFLAGS="${CPPFLAGS}"
  export CGO_CFLAGS="${CFLAGS}"
  export CGO_CXXFLAGS="${CXXFLAGS}"
  export CGO_LDFLAGS="${LDFLAGS}"
  export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
  go build -o build .
}

check() {
  cd "$pkgname-${pkgver#v}"
  go test ./...
}

package() {
  cd "$pkgname-${pkgver#v}"
  install -Dm755 build/$pkgname "$pkgdir"/usr/bin/$pkgname
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}