Package Details: tldr++ 1.0.0.alpha-1

Git Clone URL: (read-only, click to copy)
Package Base: tldr++
Description: Community driven man pages improved with smart user interaction
Upstream URL:
Licenses: MIT
Conflicts: nodejs-tldr, tealdeer, tldr, tldr-bash-git, tldr-cpp-client, tldr-python-client
Provides: tldr
Submitter: yochananmarqos
Maintainer: yochananmarqos
Last Packager: yochananmarqos
Votes: 10
Popularity: 0.009068
First Submitted: 2019-01-04 18:16
Last Updated: 2021-04-16 18:53

Dependencies (1)

Required by (0)

Sources (1)

Latest Comments

« First ‹ Previous 1 2 3 Next › Last »

yochananmarqos commented on 2020-01-13 16:40

@LightQuantum: I missed that, thanks.

LightQuantum commented on 2020-01-13 14:12

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

@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

@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 "" in any of:
    /usr/lib/go/src/ (from $GOROOT)
    /home/yochanan/go/src/ (from $GOPATH)
main.go:7:2: cannot find package "" in any of:
    /usr/lib/go/src/ (from $GOROOT)
    /home/yochanan/go/src/ (from $GOPATH)
main.go:8:2: cannot find package "" in any of:
    /usr/lib/go/src/ (from $GOROOT)
    /home/yochanan/go/src/ (from $GOPATH)
main.go:9:2: cannot find package "" in any of:
    /usr/lib/go/src/ (from $GOROOT)
    /home/yochanan/go/src/ (from $GOPATH)
==> ERROR: A failure occurred in build().

yochananmarqos commented on 2019-09-29 15:28

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

tjquillan commented on 2019-09-29 15:13

@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

@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

# Maintainer: Mark Wagie <yochanan dot marqos at gmail dot com>
pkgdesc="Community driven man pages improved with smart user interaction"
conflicts=("${pkgname%++}" 'tldr-bash' 'nodejs-tldr' 'tldr-python-client')

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 as this appears to be a more complete version of what is referenced in the guidelines.

cwrau commented on 2019-09-27 15:19

Awesome! Thanks!

yochananmarqos commented on 2019-09-27 14:10