void-packages/srcpkgs/otto/template

30 lines
770 B
Bash
Raw Normal View History

2015-10-06 12:37:47 +00:00
# Template file for 'otto'
pkgname=otto
2016-04-13 11:19:52 +00:00
version=0.2.0
revision=1
2015-10-06 12:37:47 +00:00
build_style=go
2016-02-19 20:50:23 +00:00
hostmakedepends="git-perl"
2015-10-06 12:37:47 +00:00
go_import_path="github.com/hashicorp/otto"
short_desc="Development and deployment made easy"
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"
2016-04-13 11:19:52 +00:00
checksum=3f530c7544e6a88d9fb743e561d3a07456ab7f8cc2460e13ce37ab7cc410659a
do_build() {
local path="${GOPATH}/src/${go_import_path}"
mkdir -p "$(dirname ${path})"
ln -fs $PWD "${path}"
2016-04-13 11:49:24 +00:00
cd "$GOPATH/src/$go_import_path"
GOOS= GOARCH= GOARM= make updatedeps
PATH=$GOPATH/bin:$PATH make generate
go install
2016-04-13 11:19:52 +00:00
}
2015-10-06 12:37:47 +00:00
post_install() {
2016-04-13 11:49:24 +00:00
rm $DESTDIR/usr/bin/{go-bindata,gox,stringer}
2015-10-06 12:37:47 +00:00
vlicense LICENSE
}