Merge pull request #1397 from ys-nuem/master

go: add env `$GOROOT` at loading /etc/profile
This commit is contained in:
Alexpux
2016-05-16 09:04:40 +04:00

View File

@@ -91,4 +91,9 @@ package() {
install -Dm644 VERSION "${pkgdir}${MINGW_PREFIX}/lib/go/VERSION"
find "${pkgdir}${MINGW_PREFIX}/"{lib/go/pkg,bin} -type f -exec touch '{}' +
# install profile script
mkdir -p "${pkgdir}${MINGW_PREFIX}"/etc/profile.d
echo "export GOROOT=${MINGW_PREFIX}/lib/go" > "${pkgdir}${MINGW_PREFIX}"/etc/profile.d/go.sh
cp "${pkgdir}${MINGW_PREFIX}"/etc/profile.d/go.{sh,zsh}
}