summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorPieter Joost van de Sande2021-05-05 10:19:29 +0200
committerPieter Joost van de Sande2021-05-05 10:19:29 +0200
commit42fe1774ada124b5b74829269975a71b92aff2d7 (patch)
tree7eef1af68d4fb58b5d351c1180ec9a6cde99a584
downloadaur-colorgo-git.tar.gz
initial commit
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD35
2 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..7ee50237a6f
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = colorgo-git
+ pkgdesc = Colorize (highlight) `go build` command output
+ pkgver = 20161027.1e1a5b5
+ pkgrel = 1
+ url = https://github.com/songgao/colorgo
+ arch = i686
+ arch = x86_64
+ arch = armv7h
+ makedepends = git
+ makedepends = go
+ provides = colorgo
+ conflicts = colorgo
+ source = git://github.com/songgao/colorgo.git
+ sha256sums = SKIP
+
+pkgname = colorgo-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..57764acf866
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,35 @@
+# Maintainer: Pieter Joost van de Sande <pj@born2code.net>
+pkgname=colorgo-git
+_pkgname=colorgo
+pkgver=20161027.1e1a5b5
+pkgrel=1
+pkgdesc='Colorize (highlight) `go build` command output'
+url='https://github.com/songgao/colorgo'
+arch=('i686' 'x86_64' 'armv7h')
+makedepends=('git' 'go')
+source=('git://github.com/songgao/colorgo.git')
+sha256sums=('SKIP')
+
+provides=("${_pkgname}")
+conflicts=("${_pkgname}")
+
+pkgver() {
+ cd "${srcdir}/${_pkgname}"
+ git log -1 --format='%cd.%h' --date=short | tr -d -
+}
+
+build() {
+ cd "${srcdir}/${_pkgname}"
+ export CGO_CPPFLAGS="${CPPFLAGS}"
+ export CGO_CFLAGS="${CFLAGS}"
+ export CGO_CXXFLAGS="${CXXFLAGS}"
+ export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
+ GO111MODULE=off go get github.com/songgao/go.pipeline
+ GO111MODULE=off go build -o ${_pkgname} -ldflags "-extldflags ${LDFLAGS} -s -w -X main.version=${pkgver}"
+}
+
+package() {
+ install -Dm755 "${srcdir}/${_pkgname}/${_pkgname}" ${pkgdir}/usr/bin/${_pkgname}
+}
+
+# vim: ft=sh ts=2 sw=2 et