Package Details: gotop-git 4.2.0.r15.g3e50a67-1

Git Clone URL: https://aur.archlinux.org/gotop-git.git (read-only, click to copy)
Package Base: gotop-git
Description: A terminal based graphical activity monitor inspired by gtop and vtop
Upstream URL: https://github.com/xxxserxxx/gotop
Licenses: AGPL3
Conflicts: gotop
Provides: gotop
Submitter: m3thodic
Maintainer: m3thodic
Last Packager: m3thodic
Votes: 2
Popularity: 0.000000
First Submitted: 2018-11-13 10:52 (UTC)
Last Updated: 2023-04-19 02:10 (UTC)

Dependencies (2)

Required by (0)

Sources (1)

Latest Comments

1 2 Next › Last »

serxxx commented on 2022-02-14 23:09 (UTC)

The PKGBUILD needs an update to include installing a new manpage and config file; I have those changes if you want to make me a contributor, @m3thodic, or else I can communicate them to you separately. Or, you can check the gotop package -- it includes the build and install changes.

alerque commented on 2020-03-06 20:35 (UTC)

The pkgver value should not have the "v" in it, that needs to be striped out in the pkgver() function.

m3thodic commented on 2020-03-06 18:05 (UTC)

Upstream url has been updated, thanks.

alerque commented on 2020-02-28 04:51 (UTC)

Please don't "version bump" -git or other VCS based packages! Only update when there actual changes to the build process other than the version which will be regenerated at build time anyway.

alerque commented on 2020-02-24 04:47 (UTC)

Second the call to change the upstream to follow serxxx's fork. See discussion on gotop and nate gotop-bin is also moved over too.

FabioLolix commented on 2020-02-23 22:31 (UTC)

Updated pkgbuild: https://github.com/FabioLolix/PKGBUILD-AUR_fix/blob/master/g/gotop-git/PKGBUILD

anodium commented on 2019-07-24 00:32 (UTC) (edited on 2019-07-30 06:22 (UTC) by anodium)

Hi @m3thodic,

I've added a desktop entry and icon so that it can be run from a DE directly. Here's the patch, you can apply it with git am 1-gotop-git.patch.

I've also updated the git revision in a seperate patch.

cjbassi commented on 2019-02-25 21:37 (UTC)

@egrupled Thanks again. Should be fixed now. I applied the same changes that I described in the gotop AUR package.

egrupled commented on 2019-02-25 20:07 (UTC) (edited on 2019-02-25 20:10 (UTC) by egrupled)

There are couple issues with the current PKGBUILD:

  1. It creates persistent ~/go dir (with default GOPATH) and download all dependencies there. Moreover files in that dir are set as read-only.

  2. It doesn't honor LDFLAGS

Below is example which fixes this issue:

  1. It sets GOPATH to temporary directory under build dir.

  2. It take LDFLAGS into account, also strips build path for reproducibility[1].

  3. It makes temporary GOPATH writable which allows for clean up.

[1] https://wiki.archlinux.org/index.php/Go_package_guidelines#Flags_and_build_options

Please consider adopting those changes.

build() {
  cd "$srcdir/$pkgname"
  export GOPATH="$srcdir/gopath"
  go build \
  -gcflags "all=-trimpath=${PWD}" \
  -asmflags "all=-trimpath=${PWD}" \
  -ldflags "-extldflags ${LDFLAGS}"
}

package() {
  export GOPATH="$srcdir/gopath"
  install -Dm755 "$srcdir/$pkgname/gotop" "$pkgdir/usr/bin/gotop"
  chmod -R 644 "$GOPATH"
}