Package Details: repoctl-devel-git 0.18.r16.g717a4e1-1

Git Clone URL: https://aur.archlinux.org/repoctl-devel-git.git (read-only, click to copy)
Package Base: repoctl-devel-git
Description: A supplement to repo-add and repo-remove which simplifies managing local repositories (devel branch from git)
Upstream URL: https://github.com/cassava/repoctl
Licenses: MIT
Conflicts: repoctl, repoctl-git
Provides: repoctl
Submitter: PedroHLC
Maintainer: PedroHLC
Last Packager: PedroHLC
Votes: 0
Popularity: 0.000000
First Submitted: 2019-12-25 14:10
Last Updated: 2020-01-03 09:06

Dependencies (3)

Required by (0)

Sources (1)

Latest Comments

PedroHLC commented on 2020-01-03 09:14

@yochananmarqos ok, that's right, updated!

yochananmarqos commented on 2020-01-01 23:52

Please do not manually enter an imaginary pkgver. When makepkg is run, it uses the pkgver() function to generate the pkgver. It generates 0.18.r16.g717a4e1 as 0.19 is not tagged yet.

No need for both ln and mv when it can be done in one command:

prepare() {
  dest="$srcdir/src/github.com/cassava"
  mkdir -p "$dest"
  ln -rTsf "$srcdir/${_pkgname}" "$dest/repoctl"
}

Please use go-pie instead of go per Go package guidelines.

Do not use the !strip option; in fact the binary needs to be stripped of the build path using the -trimpath flags:

build() {
  export GOPATH="$srcdir"
  src="$srcdir/src/github.com/cassava/repoctl"
  cd "$src/cmd/repoctl"
  go build \
  -trimpath \
  -ldflags "-extldflags ${LDFLAGS}" \
  .
}