gcc-arm-none-eabi: fix installation path so it works

This commit is contained in:
blshkv 2019-08-22 08:32:12 +08:00
parent 94513e322c
commit c606f96199
No known key found for this signature in database
GPG key ID: 273E3E90D1A6294F

View file

@ -3,16 +3,15 @@
EAPI=7
#MY_P="${PN}-8-2019-q3-major"
#upstream is inconsistent here
MY_P="${PN}-8-2019-q3-update"
#MY_PV="8-2019q3"
DESCRIPTION="GNU Arm Embedded Toolchain"
HOMEPAGE="https://developer.arm.com/open-source/gnu-toolchain/gnu-rm"
#amd64 binary is available only
#SRC_URI="amd64? ( https://armkeil.blob.core.windows.net/developer/Files/downloads/gnu-rm/${MY_PV}/${MY_P}-linux.tar.bz2 )
SRC_URI="amd64? ( https://armkeil.blob.core.windows.net/developer/Files/downloads/gnu-rm/8-2019q3/RC1.1/gcc-arm-none-eabi-8-2019-q3-update-linux.tar.bz2 )"
SRC_URI="amd64? ( https://armkeil.blob.core.windows.net/developer/Files/downloads/gnu-rm/8-2019q3/RC1.1/${MY_P}-linux.tar.bz2 )"
LICENSE="BSD GPL-2 LGPL-2 LGPL-3 MIT NEWLIB ZLIB"
SLOT="0"
@ -41,3 +40,10 @@ MANPATH=${DEST}/share/doc/arm-arm-none-eabi/man
EOF
newenvd "${T}/env" 99gcc-arm-embedded-bin
}
pkg_postinst() {
if [[ -z "${REPLACING_VERSIONS}" ]] ; then
elog "Before use you should run 'env-update' and '. /etc/profile'"
elog "otherwise you may be missing important environmental variables."
fi
}