Commit 0b8788c7 authored by Kawin Nikomborirak's avatar Kawin Nikomborirak

copy teensyduino from fkmclane

parent 29395448
DIST teensyduino-1.38_beta3-linux32.tar.xz 154359528 SHA256 78649b567416e23dc90c86168c7a86e07111c0d817f12e0bdbbef77c24fb7772 SHA512 b3abe9d0259bc266512b5d62fe24afea0b8736f94b150f7db94675bf37c3b0a5d7eb11af9075ec4b303d360c19cc1448c2bdfc9e5070450bdfff4ceedd756a05 WHIRLPOOL 11cc651afa47b4a95ca54587a2ab247c6d5f7507499ea8ccf674c997e540e79b56d99292e1c3ecd41b2bbedbeb298d82053e153a925113a2df538cbe3ec1bac4
DIST teensyduino-1.38_beta3-linux64.tar.xz 153450428 SHA256 16ffd9ac3f3b5705f466d63e7d9c7c107de0d7aa6fb10cd8c763cc962ef5586c SHA512 1d57d8dc17b74aa71d9362cc58ea4bddbafdbe2e67162cdcff9eefb756cf7db6a66212f0f24eec2e5f5fba86943817fab7608a6afcbb4d090689c0ed5a86b3d4 WHIRLPOOL f749ab0386e9a8004a98c28ccc11a8c40df5f2badfcffaffba1cb888240ca948819ecd5ef72817bce66ffde696b6e58286beace332d59126185e86b1b5b910c3
EBUILD teensyduino-bin-1.38_beta3.ebuild 1454 SHA256 cb39b92397f22194b4611b29d35c2bf085c1c4e69b2865425a83e59fdb921859 SHA512 b2af94c37e6cd803a83cba48384d71fda1be1c84728f0c4e22c0a4980853dcda4bc72ee53154708b71cb750b83833a55025242b8aa010711d0afa6b9b018ec6a WHIRLPOOL 13ec1f4e90e0e0723a6a06b64bb4db47028eda4e0ca7011a0736db545d84099d878832efc1b1d944df3365cf23a44862ae34cd8355f8a21eaaa46f30307c5ef6
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit eutils udev versionator
DESCRIPTION="USB-based electronics prototyping platform compatible with Arduino"
HOMEPAGE="https://www.pjrc.com/teensy/"
MY_PV="$(replace_all_version_separators '')"
MY_PN="${PN/-bin}"
MY_P="${MY_PN}-${PV}"
ARDUINO_PN="arduino"
ARDUINO_PV="1.8.2"
ARDUINO_P="${ARDUINO_PN}-${ARDUINO_PV}"
SRC_URI="
amd64? ( https://file.fooster.io/overlay/${MY_P}-linux64.tar.xz )
x86? ( https://file.fooster.io/overlay/${MY_P}-linux32.tar.xz )
"
LICENSE="GPL-2 LGPL-2.1"
SLOT="0"
KEYWORDS=""
IUSE=""
RDEPEND="virtual/libusb:0"
DEPEND="${RDEPEND}"
S="${WORKDIR}/${MY_P}"
RESTRICT="binchecks preserve-libs strip"
src_unpack() {
if use amd64; then
unpack "${MY_P}"-linux64.tar.xz
else
unpack "${MY_P}"-linux32.tar.xz
fi
cp "${FILESDIR}"/49-teensy.rules "${WORKDIR}" || die
}
src_install() {
newicon lib/arduino.png "${MY_PN}".png
make_desktop_entry "${MY_PN}" Teensyduino "${MY_PN}"
mkdir -p "${D}"/opt/"${PN}" || die
cp -a * "${D}"/opt/"${PN}" || die
make_wrapper ${MY_PN} "${EROOT}opt/${PN}/${ARDUINO_PN}" "${EROOT}opt/${PN}"
udev_dorules "${WORKDIR}"/49-teensy.rules
}
pkg_postinst() {
udev_reload
elog "Initial setup for your Teensy requires you to plug in the board,"
elog "verify a sketch, then press the reset button on the board. After"
elog "that, you can use the upload button."
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment