summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO16
-rw-r--r--.gitignore5
-rw-r--r--PKGBUILD30
-rw-r--r--gometalinter3
4 files changed, 54 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..18b43fb72b9
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = gometalinter
+ pkgdesc = golang meta linter
+ pkgver = 1
+ pkgrel = 1
+ arch = i686
+ arch = x86_64
+ license = GPL
+ makedepends = go
+ makedepends = git
+ depends = go
+ depends = git
+ source = gometalinter
+ md5sums = d8d3640069c485ca415ab3adb18523ef
+
+pkgname = gometalinter
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..46724119eb8
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+*
+!.gitignore
+!PKGBUILD
+!.SRCINFO
+!gometalinter
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..2d50c3d7d4d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,30 @@
+pkgname=gometalinter
+pkgver=1
+pkgrel=1
+pkgdesc="golang meta linter"
+arch=('i686' 'x86_64')
+license=('GPL')
+makedepends=('go' 'git')
+
+source=(
+ "gometalinter"
+)
+md5sums=('d8d3640069c485ca415ab3adb18523ef')
+
+depends=('go' 'git')
+
+backup=(
+)
+
+build() {
+ export GOPATH="$srcdir/"
+ go get -u -v gopkg.in/alecthomas/gometalinter.v1
+ $srcdir/bin/gometalinter.v1 --install
+}
+
+package() {
+ find "$srcdir/bin/" -type f -executable | while read filename; do
+ install -DT "$filename" "$pkgdir/usr/bin/gometalinters/$(basename $filename)"
+ done
+ install -DT $srcdir/gometalinter "$pkgdir/usr/bin/gometalinter"
+}
diff --git a/gometalinter b/gometalinter
new file mode 100644
index 00000000000..7e26519acd5
--- /dev/null
+++ b/gometalinter
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+PATH=$PATH:/usr/bin/gometalinters gometalinter.v1 "$@"