diff options
author | Stefan Husmann | 2015-08-08 16:11:41 +0200 |
---|---|---|
committer | Stefan Husmann | 2015-08-08 16:11:41 +0200 |
commit | 89628606bc534c78e0929b61fc53f10d3b8e05ef (patch) | |
tree | ac50d555326704e39a74b385cab2012fab2fd0af | |
parent | a9afa8f4bebe3281fdccd1b10901d6416021eac9 (diff) | |
download | aur-89628606bc534c78e0929b61fc53f10d3b8e05ef.tar.gz |
fix PKGBUILD
-rw-r--r-- | PKGBUILD | 30 |
1 files changed, 21 insertions, 9 deletions
@@ -20,18 +20,30 @@ pkgver() { } build() { - cd ${pkgname%-git} - go build + # Get and build the builder. + gopath=${srcdir}/go + if [[ -d ${gopath} ]]; then + rm -rf ${gopath} + fi + mkdir ${gopath} + GOPATH=${gopath} go get github.com/constabulary/gb/... + + cd ${srcdir}/${pkgname%-git} + ${gopath}/bin/gb build } package() { - cd ${pkgname%-git} - # repo program - mkdir -p $pkgdir/usr/bin - install -m755 repoctl $pkgdir/usr/bin/ + cd ${srcdir}/${pkgname%-git} + + # Install repoctl program + install -d ${pkgdir}/usr/bin + install -m755 bin/repoctl ${pkgdir}/usr/bin/ + # Install other documentation - install -m644 TODO README.md NEWS $pkgdir/usr/share/doc/repo-keep/ + install -d ${pkgdir}/usr/share/doc/repoctl + install -m644 README.md NEWS.md ${pkgdir}/usr/share/doc/repoctl/ + # Install completion files - mkdir -p $pkgdir/usr/share/zsh/site-functions/ - install -m644 contrib/zsh_completion $pkgdir/usr/share/zsh/site-functions/_repoctl + install -d ${pkgdir}/usr/share/zsh/site-functions/ + install -m644 contrib/zsh_completion ${pkgdir}/usr/share/zsh/site-functions/_repoctl } |