blob: 37a5b6abe6fb602571a6a2a188c624f247e998af (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# Maintainer: Sergio Correia <sergio@correia.cc>
pkgname='powerline-go-git'
_pkgname='powerline-go'
pkgver=1.16.1.0.g679d788
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=('git' 'go')
provides=('powerline-go')
conflicts=('powerline-go')
source=($_pkgname::'git+https://github.com/justjanne/powerline-go.git')
sha256sums=('SKIP')
pkgver() {
cd "${_pkgname}"
git describe --tags --long | sed 's/^v//;s/-/./;s/-/./g'
}
build() {
cd "${_pkgname}"
go build \
-trimpath \
-ldflags "-extldflags ${LDFLAGS}" \
.
}
package() {
cd "${_pkgname}"
install -m755 -D powerline-go "${pkgdir}/usr/bin/${_pkgname}"
}
# vim:set ts=2 sw=2 et:
|