diff options
author | fzerorubigd | 2017-01-07 13:46:33 +0330 |
---|---|---|
committer | fzerorubigd | 2017-01-07 13:46:33 +0330 |
commit | 534fd3d3692fa199e2e2ca6b01f76b37591c4d03 (patch) | |
tree | 5c372747d622b992c36b529e662998a90db67731 | |
download | aur-534fd3d3692fa199e2e2ca6b01f76b37591c4d03.tar.gz |
initialize commit
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 49 |
3 files changed, 67 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..9e1effdf106f --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = go-outline-git + pkgdesc = Utility to extract JSON representation of declarations from a Go source file + pkgver = 20161011.9_e785568 + pkgrel = 1 + arch = i686 + arch = x86_64 + license = GPL + makedepends = go + makedepends = git + source = git://github.com/lukehoban/go-outline.git + md5sums = SKIP + +pkgname = go-outline-git + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..f71c635dafda --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +* +!.gitignore +!PKGBUILD +!.SRCINFO diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..4bcb3c52216c --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,49 @@ +pkgname=go-outline-git +pkgver=20161011.9_e785568 +pkgrel=1 +pkgdesc="Utility to extract JSON representation of declarations from a Go source file" +arch=('i686' 'x86_64') +license=('GPL') +depends=( +) +makedepends=( + 'go' + 'git' +) + +source=( + "git://github.com/lukehoban/go-outline.git" +) + +md5sums=( + 'SKIP' +) + +backup=( +) + +conflicts=( +) + +pkgver() { + cd "$srcdir/go-outline" + local date=$(git log -1 --format="%cd" --date=short | sed s/-//g) + local count=$(git rev-list --count HEAD) + local commit=$(git rev-parse --short HEAD) + echo "$date.${count}_$commit" +} + +build() { + GOPATH=$srcdir + GOBIN=$srcdir/bin/ + mkdir -p $srcdir/src + ln -sf $srcdir/go-outline $srcdir/src + cd $srcdir/src/go-outline + go get -v +} + +package() { + find "$srcdir/bin/" -type f -executable | while read filename; do + install -DT "$filename" "$pkgdir/usr/bin/$(basename $filename)" + done +} |