mirror of
https://github.com/void-linux/void-packages.git
synced 2025-09-01 09:32:57 +02:00
otto: update to 0.2.0
This commit is contained in:
parent
ec707e1562
commit
1633070248
1 changed files with 15 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'otto'
|
# Template file for 'otto'
|
||||||
pkgname=otto
|
pkgname=otto
|
||||||
version=0.1.1
|
version=0.2.0
|
||||||
revision=2
|
revision=1
|
||||||
build_style=go
|
build_style=go
|
||||||
hostmakedepends="git-perl"
|
hostmakedepends="git-perl"
|
||||||
go_import_path="github.com/hashicorp/otto"
|
go_import_path="github.com/hashicorp/otto"
|
||||||
|
@ -10,8 +10,20 @@ maintainer="Diogo Leal <diogo@diogoleal.com>"
|
||||||
license="MPL-2.0"
|
license="MPL-2.0"
|
||||||
homepage="https://ottoproject.io/"
|
homepage="https://ottoproject.io/"
|
||||||
distfiles="https://github.com/hashicorp/otto/archive/v${version}.tar.gz"
|
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() {
|
post_install() {
|
||||||
|
rm $DESTDIR/usr/bin/{go-bindata,gox,stringer}
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue