Merge pull request #1397 from ys-nuem/master
go: add env `$GOROOT` at loading /etc/profile
This commit is contained in:
@@ -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}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user