Package Details: tldr++ 1.0.0.alpha-5

Git Clone URL: https://aur.archlinux.org/tldr++.git (read-only, click to copy)
Package Base: tldr++
Description: Community driven man pages improved with smart user interaction
Upstream URL: https://isacikgoz.me/tldr
Licenses: MIT
Conflicts: tldr
Provides: tldr
Submitter: yochananmarqos
Maintainer: yochananmarqos
Last Packager: yochananmarqos
Votes: 10
Popularity: 0.000026
First Submitted: 2019-01-04 18:16 (UTC)
Last Updated: 2022-03-18 15:15 (UTC)

Dependencies (1)

Required by (1)

Sources (1)

Latest Comments

yochananmarqos commented on 2021-04-16 19:43 (UTC)

@micwoj92: Yeah, I couldn't get 0.6.1 to build anymore and dep is deprecated, anyway.

micwoj92 commented on 2021-04-16 19:11 (UTC)

Oh you decided to use alpha version :p

yochananmarqos commented on 2021-04-16 18:57 (UTC)

@xerus: Updated and builds now.

P.S. I shouldn't have to list all those conflicting packages, they need to provide and conflict with tldr.

xeruf commented on 2021-04-16 16:09 (UTC)

Haven't been able to install this for a while :/

Starting build()...
go: cannot find main module, but found Gopkg.lock in /home/janek/.cache/yay/tldr++/src/gopath/src/github.com/isacikgoz/tldr
        to create a module there, run:
        go mod init
==> ERROR: A failure occurred in build().
    Aborting...
error making: tldr++

btw, it also conflicts with tealdeer

yochananmarqos commented on 2021-03-10 21:39 (UTC)

@micwoj92: It would be better to create a VCS package, tldr++-git.

micwoj92 commented on 2021-03-10 20:57 (UTC)

Mind if I create tldr alpha for the time being?

yochananmarqos commented on 2021-03-10 20:42 (UTC)

@micwoj92: There are some issues with 1.0.0-alpha.

micwoj92 commented on 2021-03-10 17:39 (UTC)

I've seen that v1.0.0-alpha released, but I understand why you might not want to update to alpha release. The 0.X.X releases are marked on GitHub as pre-releases so maybe it shouldnt be that much of a problem?

yochananmarqos commented on 2021-03-10 17:10 (UTC)

@micwoj92: As @iboyperson mentioned below, the current version does not have Go modules support.

micwoj92 commented on 2021-03-10 04:24 (UTC)

upstream uses go modules now, that means that dep package should not be needed to build

yochananmarqos commented on 2020-01-13 16:40 (UTC)

@LightQuantum: I missed that, thanks.

LightQuantum commented on 2020-01-13 14:12 (UTC) (edited on 2020-01-13 14:12 (UTC) by LightQuantum)

Maybe 'git' should be added to make depends?

==> Starting prepare()...
init failed: unable to solve the dependency graph: Solving failure:
    (1) git is not installed:
    (2) git is not installed:
    (3) git is not installed:
    (4) git is not installed:

tjquillan commented on 2019-09-30 05:44 (UTC)

@yochananmarqos Whoops my apologies it appears this version does not have go modules support and that it only supports it on master. I am very sorry for any inconvenience.

yochananmarqos commented on 2019-09-30 02:46 (UTC) (edited on 2019-09-30 02:47 (UTC) by yochananmarqos)

@iboyperson: Are you sure you don't have anything in ~/go/ from a previous version of this package when I was using go get? This is what I get using your revised PKGBUILD:

==> Starting build()...
main.go:6:2: cannot find package "github.com/isacikgoz/tldr/pkg/config" in any of:
    /usr/lib/go/src/github.com/isacikgoz/tldr/pkg/config (from $GOROOT)
    /home/yochanan/go/src/github.com/isacikgoz/tldr/pkg/config (from $GOPATH)
main.go:7:2: cannot find package "github.com/isacikgoz/tldr/pkg/pages" in any of:
    /usr/lib/go/src/github.com/isacikgoz/tldr/pkg/pages (from $GOROOT)
    /home/yochanan/go/src/github.com/isacikgoz/tldr/pkg/pages (from $GOPATH)
main.go:8:2: cannot find package "github.com/isacikgoz/tldr/pkg/prompt" in any of:
    /usr/lib/go/src/github.com/isacikgoz/tldr/pkg/prompt (from $GOROOT)
    /home/yochanan/go/src/github.com/isacikgoz/tldr/pkg/prompt (from $GOPATH)
main.go:9:2: cannot find package "gopkg.in/alecthomas/kingpin.v2" in any of:
    /usr/lib/go/src/gopkg.in/alecthomas/kingpin.v2 (from $GOROOT)
    /home/yochanan/go/src/gopkg.in/alecthomas/kingpin.v2 (from $GOPATH)
==> ERROR: A failure occurred in build().
    Aborting...

yochananmarqos commented on 2019-09-29 15:28 (UTC)

@iboyperson: Without using $GOPATH, it complained it couldn't find github.com/isacikgoz/tldr. I'll take another look after work.

tjquillan commented on 2019-09-29 15:13 (UTC)

@yochananmarqos No prob! Additionally, Go >=1.11 packaging guidelines does not use GOPATH or dep as go now has integrated dependency management via Go Modules (see go.mod and go.sum in tldr++ repo). Thus as shown in my PKGBUILD from the previous comment we are able to completely forgo the prepare section and use of GOPATH.

yochananmarqos commented on 2019-09-29 14:26 (UTC)

@iboyperson: Thanks, I couldn't figure out how to strip $PWD from the binary following the wiki.

tjquillan commented on 2019-09-28 16:49 (UTC)

# Maintainer: Mark Wagie <yochanan dot marqos at gmail dot com>
pkgname=tldr++
pkgver=0.6.1
pkgrel=2
pkgdesc="Community driven man pages improved with smart user interaction"
arch=('any')
url="https://isacikgoz.me/tldr"
license=('MIT')
makedepends=('go-pie')
provides=("${pkgname%++}")
conflicts=("${pkgname%++}" 'tldr-bash' 'nodejs-tldr' 'tldr-python-client')
source=("$pkgname-$pkgver.tar.gz"::"https://github.com/isacikgoz/tldr/archive/v$pkgver.tar.gz")
sha256sums=('e377942c6dd9cbe3f9f55b7614e17b7c5f0694b326ad3993d0cde59aca8dc8fa')

build() {
    cd "${pkgname%++}-$pkgver"

    go build \
        -gcflags "all=-trimpath=${PWD}" \
        -asmflags "all=-trimpath=${PWD}" \
        -ldflags "-extldflags ${LDFLAGS}" \
            -o $pkgname .
}

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


Here is a revised PKGBUILD for Go >=1.11 packaging guidelines as tldr++ supports this. For the build flags see https://git.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/git-lfs as this appears to be a more complete version of what is referenced in the guidelines.

cwrau commented on 2019-09-27 15:19 (UTC)

Awesome! Thanks!

yochananmarqos commented on 2019-09-27 14:10 (UTC)

Fixed!

cwrau commented on 2019-09-26 21:40 (UTC)

This doesn't seem to compile anymore?

==> Starting build()...
package github.com/isacikgoz/tldr: no Go files in /home/cwr/go/src/github.com/isacikgoz/tldr
==> ERROR: A failure occurred in build().
    Aborting...