Package Details: wtfutil 0.43.0-1

Git Clone URL: https://aur.archlinux.org/wtfutil.git (read-only, click to copy)
Package Base: wtfutil
Description: Personal information dashboard for your terminal
Upstream URL: https://wtfutil.com
Keywords: dashboard
Licenses: MPL-2.0
Submitter: Sweenu
Maintainer: yochananmarqos
Last Packager: yochananmarqos
Votes: 10
Popularity: 0.000020
First Submitted: 2018-05-31 18:37 (UTC)
Last Updated: 2024-01-22 00:58 (UTC)

Dependencies (2)

Required by (0)

Sources (1)

Latest Comments

« First ‹ Previous 1 2 3 Next › Last »

matthias.lisin commented on 2019-09-19 11:38 (UTC)

@Kunda Update go to 1.13

Kunda commented on 2019-09-19 11:02 (UTC)

==> Validating source files with sha256sums...
    wtfutil-0.22.0.tar.gz ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting wtfutil-0.22.0.tar.gz with bsdtar
==> Starting build()...
flag provided but not defined: -trimpath
usage: go build [-o output] [-i] [build flags] [packages]
Run 'go help build' for details.
==> ERROR: A failure occurred in build().
    Aborting...

Running Manjaro 18.1.0

yaakushi commented on 2019-09-19 04:44 (UTC)

I've bumped the package to its latest version, building from the source. It does need to set the GOPROXY env. var pointing to the GoCenter repository as described in the upstream documentation, otherwise the user wouldn't be able to fetch all of the dependencies.

@yochananmarqos Since this software is using Go mod, we don't need the prepare() bit (and we can also simplify the path inside $srcdir). Oh, and we do need to export the GOPROXY export before calling go build. Thank you for the help! I've made some small changes to it and listed you as a contributor.

yochananmarqos commented on 2019-09-18 20:54 (UTC)

matthias.lisin: How's this?

prepare() {
    mkdir -p gopath/src/github.com/$pkgname
    ln -rTsf wtf-$pkgver gopath/src/github.com/$pkgname/wtf
}

build() {
    cd gopath/src/github.com/$pkgname/wtf
    go build -o bin/wtfutil \
        -trimpath \
        -ldflags "-extldflags ${LDFLAGS}" \
        .
}

package() {
    cd "wtf-$pkgver"
    install -Dm755 "bin/$pkgname" "$pkgdir/usr/bin/$pkgname"
    install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE.md"
    install -Dm644 README.md "$pkgdir/usr/share/docs/$pkgname/README.md"

matthias.lisin commented on 2019-09-18 19:22 (UTC) (edited on 2019-09-18 19:24 (UTC) by matthias.lisin)

@yochananmarqos I don't think this is the way to go. Even though you download the .tar.gz source, you then redownload the package using go get.

This does not use the source. It downloads the latest revision from Github.

Edit: Also, it's not reproducible. See Go packaging guidelines#Flags and build options

yochananmarqos commented on 2019-09-18 17:55 (UTC)

@yaakushi: Here you go. You may add me as a Co-Maintainer or Contributor if you'd like.

pkgname=wtfutil
pkgver=0.22.0
pkgrel=1
pkgdesc="Personal information dashboard for your terminal"
arch=('i686' 'x86_64' 'aarch64' 'armv6h')
url="https://wtfutil.com"
license=('MPL2')
makedepends=('go')
source=("$pkgname-$pkgver.tar.gz::https://github.com/wtfutil/wtf/archive/v$pkgver.tar.gz")
sha256sums=('b421af6aceba9b4f4ff67d591fd899e5357891a06fa13704ec4e77f983ee1064')

build() {
    export GOPATH="$srcdir"

    # Set the Go proxy variable to GoCenter
    export GOPROXY="https://gocenter.io"

    # Disable the Go checksum database
    export GOSUMDB=off

    # Enable Go modules
    export GO111MODULE=on

    go get -u github.com/wtfutil/wtf
}

package() {
    install -Dm755 bin/wtf "$pkgdir/usr/bin/$pkgname"
    install -Dm644 "wtf-$pkgver/LICENSE.md" "$pkgdir/usr/share/licenses/$pkgname/LICENSE.md"
    install -Dm644 "wtf-$pkgver/README.md" "$pkgdir/usr/share/docs/$pkgname/README.md"
}

matthias.lisin commented on 2019-09-18 16:28 (UTC)

@yaakushi No problem, go for it. There were a few days of silence which made me worry a bit. Good to hear that you're working on the package.

yaakushi commented on 2019-09-18 14:35 (UTC)

I've been fiddling with the PKGBUILD in order to make this package build from the source instead of just fetching the binaries. I've been a bit short on time, this is why this hasn't been updated yet. Sorry.

@matthias.lisin I did. I have no idea about how people at Arch/the AUR feel about someone adopting a package someone else filled a orphan request for, and, honestly, I hadn't considered that until I read your comment. If that's frowned upon, I'd be more than happy to transfer the maintainership of this package to you. Sorry about how inconsiderate I was.

matthias.lisin commented on 2019-09-18 10:11 (UTC)

@juantascon It was orphaned, but yaakushi grabbed it instantly.

juantascon commented on 2019-09-18 08:28 (UTC)

since this was never orphaned, and since the pkgname is wrong either way as per the guidelines, I've made a new pkg: wtfutil-bin