otto: update to 0.2.0

This commit is contained in:
Dominik Honnef 2016-04-13 13:19:52 +02:00
parent ec707e1562
commit 1633070248

View File

@ -1,7 +1,7 @@
# Template file for 'otto'
pkgname=otto
version=0.1.1
revision=2
version=0.2.0
revision=1
build_style=go
hostmakedepends="git-perl"
go_import_path="github.com/hashicorp/otto"
@ -10,8 +10,20 @@ maintainer="Diogo Leal <diogo@diogoleal.com>"
license="MPL-2.0"
homepage="https://ottoproject.io/"
distfiles="https://github.com/hashicorp/otto/archive/v${version}.tar.gz"
checksum=e46aa616c064ab0d0ffde78b1f8e84295f9ff66ec88089f68718f2a4d2317aa1
checksum=3f530c7544e6a88d9fb743e561d3a07456ab7f8cc2460e13ce37ab7cc410659a
do_build() {
local path="${GOPATH}/src/${go_import_path}"
mkdir -p "$(dirname ${path})"
ln -fs $PWD "${path}"
cd "$GOPATH/src/$go_import_path"
make updatedeps
PATH=$GOPATH/bin:$PATH make generate
go install
}
post_install() {
rm $DESTDIR/usr/bin/{go-bindata,gox,stringer}
vlicense LICENSE
}