Package Details: powerline-go 1.24-1

Git Clone URL: https://aur.archlinux.org/powerline-go.git (read-only, click to copy)
Package Base: powerline-go
Description: A beautiful, useful and fast prompt for your shell
Upstream URL: https://github.com/justjanne/powerline-go
Keywords: go powerline
Licenses: GPL3
Submitter: swiftscythe
Maintainer: marco44
Last Packager: marco44
Votes: 6
Popularity: 0.000000
First Submitted: 2018-06-24 10:26 (UTC)
Last Updated: 2023-06-30 15:19 (UTC)

Dependencies (3)

Required by (0)

Sources (1)

Latest Comments

« First ‹ Previous 1 2

yochananmarqos commented on 2020-04-23 14:40 (UTC)

dep is not longer needed, see my PKGBUILD.

Pierre commented on 2020-04-11 08:45 (UTC)

The dependency "git" is missing from "makedepends".

yochananmarqos commented on 2019-10-21 22:57 (UTC)

Please adhere to Go package guidelines:

pkgname=powerline-go
pkgver=1.13.0
pkgrel=1
pkgdesc="A beautiful, useful and fast prompt for your shell"
arch=('x86_64')
url="https://github.com/justjanne/powerline-go"
license=('GPL3')
makedepends=('go-pie' 'dep')
optdepends=('powerline-fonts')
source=("$pkgname-$pkgver.tar.gz::https://github.com/justjanne/$pkgname/archive/v$pkgver.tar.gz")
sha256sums=('0c0d8a2aca578391edc0120f6cbb61f9ef5571190c07a978932348b0489d00ea')

prepare() {
    mkdir -p gopath/src/github.com/justjanne
    ln -rTsf "$pkgname-$pkgver" "gopath/src/github.com/justjanne/$pkgname"
    export GOPATH="$srcdir"/gopath

    cd "gopath/src/github.com/justjanne/$pkgname"
    dep init
    dep ensure
}

build() {
    cd "$pkgname-$pkgver"
    go build \
    -gcflags "all=-trimpath=${PWD}" \
    -asmflags "all=-trimpath=${PWD}" \
    -ldflags "-extldflags=-zrelro" \
    -ldflags "-extldflags=-znow" \
    .
}

package() {
    cd "$pkgname-$pkgver"
    install -Dm755 "$pkgname" "$pkgdir/usr/bin/$pkgname"
}

yochananmarqos commented on 2019-09-13 14:47 (UTC)

I'm getting an error building:

==> Starting build()...
warning: ignoring symlink /home/yochanan/Documents/pkgbuilds/powerline-go/src/go/src/powerline-go-1.13.0
go get .: path /home/yochanan/Documents/pkgbuilds/powerline-go/src/go/src/powerline-go-1.13.0 is not a package in module rooted at /home/yochanan/Documents/pkgbuilds/powerline-go/src/go/src/powerline-go-1.13.0
==> ERROR: A failure occurred in build().
    Aborting...

yochananmarqos commented on 2019-02-07 15:37 (UTC)

I suggest adding powerline-fonts as an optional dependency. See the Installation section of the README.