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.000004
First Submitted: 2019-01-04 18:16 (UTC)
Last Updated: 2024-01-22 00:02 (UTC)

Dependencies (1)

Required by (3)

Sources (1)

Latest Comments

« First ‹ Previous 1 2 3 Next › Last »

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!