2015-02-21 12:38:37 +00:00
|
|
|
hostmakedepends+=" go"
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
|
|
hostmakedepends+=" go-cross-linux"
|
|
|
|
fi
|
|
|
|
nostrip=yes
|
2015-02-21 13:34:03 +00:00
|
|
|
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
|
|
armv6*) export GOARCH=arm; export GOARM=6;;
|
|
|
|
armv7*) export GOARCH=arm; export GOARM=7;;
|
|
|
|
i686*) export GOARCH=386;;
|
|
|
|
x86_64*) export GOARCH=amd64;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
export GOPATH="${wrksrc}/_build-${pkgname}-xbps"
|
2015-05-04 11:39:15 +00:00
|
|
|
export GOBIN="${wrksrc}/_build-${pkgname}-xbps-bin"
|