Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pkgname=protoc-gen-doc-fixed-git
- _gitname=protoc-gen-doc
- _username=estan
- pkgver=372.c35c052
- pkgrel=1
- pkgdesc="A documentation generator plugin for Google Protocol Buffers."
- arch=('any')
- url="https://github.com/estan/protoc-gen-doc"
- makedepends=('go' 'dep')
- license=('LGPL')
- source=("git+https://github.com/estan/protoc-gen-doc.git")
- sha256sums=('SKIP')
- prepare(){
- mkdir -p gopath/src/$_username/
- ln -rTsf $_gitname gopath/src/$_username/$_gitname
- export GOPATH="$srcdir"/gopath
- cd gopath/src/$_username/$_gitname
- dep ensure
- }
- build() {
- export GOPATH="$srcdir"/gopath
- cd gopath/src/$_username/$_gitname
- go install \
- -gcflags "all=-trimpath=$GOPATH" \
- -asmflags "all=-trimpath=$GOPATH" \
- -ldflags "-extldflags $LDFLAGS" \
- -v ./...
- }
- package() {
- install -Dm755 gopath/bin/$_gitname "$pkgdir"/usr/bin/$_gitname
- }
- pkgver() {
- cd $_gitname
- echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement