mirror of
https://github.com/pentoo/pentoo-overlay
synced 2025-12-30 12:18:17 +01:00
52 lines
1.8 KiB
Bash
52 lines
1.8 KiB
Bash
# Copyright 1999-2018 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=7
|
|
|
|
#upstream is inconsistent here
|
|
MY_P="${PN}-9-2019-q4-major"
|
|
#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/9-2019q4/RC2.1/${MY_P}-x86_64-linux.tar.bz2 )"
|
|
# https://armkeil.blob.core.windows.net/developer/Files/downloads/gnu-rm/9-2019q4/RC2.1/gcc-arm-none-eabi-9-2019-q4-major-x86_64-linux.tar.bz2
|
|
#https://developer.arm.com/-/media/Files/downloads/gnu-rm/9-2019q4/RC2.1/gcc-arm-none-eabi-9-2019-q4-major-x86_64-linux.tar.bz2?revision=6e63531f-8cb1-40b9-bbfc-8a57cdfc01b4&la=en&hash=F761343D43A0587E8AC0925B723C04DBFB848339
|
|
#arm 64 https://developer.arm.com/-/media/Files/downloads/gnu-rm/9-2019q4/RC2.1/gcc-arm-none-eabi-9-2019-q4-major-aarch64-linux.tar.bz2?revision=490085f7-6fa7-49d0-b860-f437916e05eb&la=en&hash=568E0D184DE11F1FE02538BABB850CA41BC7C1CD
|
|
|
|
LICENSE="BSD GPL-2 LGPL-2 LGPL-3 MIT NEWLIB ZLIB"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64"
|
|
IUSE=""
|
|
RESTRICT="strip"
|
|
QA_PREBUILT="*"
|
|
|
|
DEPEND=""
|
|
RDEPEND="sys-libs/ncurses-compat
|
|
dev-lang/python:2.7"
|
|
|
|
S="${WORKDIR}/${MY_P}"
|
|
|
|
src_install() {
|
|
dodir /opt/${PN}
|
|
\cp -r "${S}"/* "${ED}"/opt/${PN}
|
|
fowners -R root:0 /opt/${PN}
|
|
|
|
local DEST=/opt/${PN}
|
|
cat > "${T}/env" << EOF
|
|
PATH=${DEST}/bin
|
|
ROOTPATH=${DEST}/bin
|
|
LDPATH=${DEST}/lib
|
|
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
|
|
}
|