linamh/dev-embedded/arduino-bin/arduino-bin-1.8.19-r1.ebuild

46 lines
1.5 KiB
Bash
Raw Normal View History

# Copyright 1999-2022 Gentoo Authors
2021-06-30 18:45:43 +02:00
# Distributed under the terms of the GNU General Public License v2
2023-07-20 20:28:34 +02:00
EAPI=8
2021-06-30 18:45:43 +02:00
2023-07-20 20:28:34 +02:00
inherit udev desktop
2021-06-30 18:45:43 +02:00
DESCRIPTION="electronics prototyping platform based on easy-to-use hardware and software"
HOMEPAGE="https://www.arduino.cc/ https://www.pjrc.com/teensy/"
2022-11-19 21:49:12 +01:00
TEENSY_PV="157"
2021-06-30 18:45:43 +02:00
MY_PN="${PN/-bin}"
MY_P="${MY_PN}-${PV}"
SRC_URI="
2021-07-01 13:56:41 +02:00
amd64? ( https://downloads.arduino.cc/arduino-${PV}-linux64.tar.xz -> ${MY_P}-linux64.tar.xz
2021-06-30 18:45:43 +02:00
https://www.pjrc.com/teensy/td_${TEENSY_PV}/TeensyduinoInstall.linux64 -> TeensyduinoInstall-${TEENSY_PV}.linux64 )
2021-07-01 13:56:41 +02:00
x86? ( https://downloads.arduino.cc/arduino-${PV}-linux32.tar.xz -> ${MY_P}-linux32.tar.xz
2021-06-30 18:45:43 +02:00
https://www.pjrc.com/teensy/td_${TEENSY_PV}/TeensyduinoInstall.linux64 -> TeensyduinoInstall-${TEENSY_PV}.linux32 )
2022-03-20 18:42:52 +01:00
https://www.pjrc.com/teensy/00-teensy.rules
2021-06-30 18:45:43 +02:00
"
LICENSE="GPL-2 LGPL-2.1"
SLOT="0"
KEYWORDS="-* ~amd64 ~x86"
IUSE=""
DEPEND=""
RDEPEND=""
S="${WORKDIR}/${MY_P}"
RESTRICT="binchecks preserve-libs strip"
src_install() {
newicon lib/arduino.png "${MY_PN}".png
2022-08-23 12:41:36 +02:00
make_desktop_entry "/opt/${MY_PN}/${MY_PN}" Arduino "${MY_PN}"
2021-06-30 18:45:43 +02:00
mkdir -p "${D}"/opt/"${MY_PN}" || die
cp -a * "${D}"/opt/"${MY_PN}" || die
cp "${DISTDIR}"/TeensyduinoInstall-${TEENSY_PV}.linux* "${WORKDIR}"/TeensyduinoInstall
chmod 755 "${WORKDIR}"/TeensyduinoInstall
"${WORKDIR}"/TeensyduinoInstall --dir="${D}"/opt/"${MY_PN}"
2021-06-30 18:45:43 +02:00
make_wrapper ${MY_PN} "${EROOT}opt/${MY_PN}/${MY_PN}" "${EROOT}opt/${MY_PN}"
udev_newrules "${DISTDIR}"/00-teensy.rules 49-teensy.rules
2021-06-30 18:45:43 +02:00
}