summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorfzerorubigd2018-02-27 00:03:39 +0330
committerfzerorubigd2018-02-27 00:03:39 +0330
commit88fd7d815ea8ac7f27918804180acbfdae33816e (patch)
tree5a12747747248ae8dc62cf374bd3ab45b2bddfca
downloadaur-88fd7d815ea8ac7f27918804180acbfdae33816e.tar.gz
initial release
-rw-r--r--.SRCINFO16
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD35
3 files changed, 55 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..2132a115c81
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = godoctor-git
+ pkgdesc = Go Doctor - The Golang Refactoring Engine
+ pkgver = 480.20170519
+ pkgrel = 1
+ url = https://github.com/godoctor/godoctor
+ arch = i686
+ arch = x86_64
+ license = BSD
+ makedepends = go
+ makedepends = git
+ depends = glibc
+ source = git+https://github.com/godoctor/godoctor
+ md5sums = SKIP
+
+pkgname = godoctor-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..5cddb72985e
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+src
+pkg
+*.xz
+*.swp \ No newline at end of file
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..6f9dc5993d5
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,35 @@
+# Maintainer: fzerorubigd <fzero@rubi.gd>
+
+pkgname=godoctor-git
+pkgver=480.20170519
+pkgrel=1
+pkgdesc="Go Doctor - The Golang Refactoring Engine"
+arch=('i686' 'x86_64')
+url="https://github.com/godoctor/godoctor"
+license=('BSD')
+depends=('glibc')
+makedepends=('go' 'git')
+source=('git+https://github.com/godoctor/godoctor')
+md5sums=('SKIP')
+
+pkgver() {
+ cd "${srcdir}/godoctor"
+ printf "%s.%s" "$(git rev-list --count HEAD)" "$(git log -1 --format=%cd --date=short | tr -d -)"
+}
+
+prepare() {
+ mkdir -p "${srcdir}/src/github.com/godoctor/"
+ ln -sf "${srcdir}/godoctor" "${srcdir}/src/github.com/godoctor/"
+}
+
+build() {
+ export GOPATH="${srcdir}"
+ cd "${srcdir}/src/github.com/godoctor/godoctor"
+ go get -v
+ go build -o godoctor
+}
+
+package() {
+ cd "${srcdir}/src/github.com/godoctor/godoctor"
+ install -Dm755 godoctor "${pkgdir}/usr/bin/godoctor"
+}