mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-21 21:13:27 -04:00
dev-embedded/pico-sdk: new package, add 2.1.1
Signed-off-by: Manuel <ljn0099@hotmail.com>
This commit is contained in:
11
dev-embedded/pico-sdk/metadata.xml
Normal file
11
dev-embedded/pico-sdk/metadata.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>ljn0099@hotmail.com</email>
|
||||
<name>Manuel</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">raspberrypi/pico-sdk</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
30
dev-embedded/pico-sdk/pico-sdk-2.1.1.ebuild
Normal file
30
dev-embedded/pico-sdk/pico-sdk-2.1.1.ebuild
Normal file
@@ -0,0 +1,30 @@
|
||||
# Copyright 2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit git-r3
|
||||
|
||||
DESCRIPTION="Libraries and tools for C/C++ development on RP2040 and RP2350 microcontrollers."
|
||||
HOMEPAGE="https://github.com/raspberrypi/pico-sdk"
|
||||
|
||||
EGIT_REPO_URI="https://github.com/raspberrypi/pico-sdk.git"
|
||||
EGIT_BRANCH="master"
|
||||
EGIT_COMMIT="${PV}"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
|
||||
src_install() {
|
||||
dodir /opt/pico-sdk
|
||||
cp -r "${S}/." "${D}/opt/pico-sdk/"
|
||||
find "${D}/opt/pico-sdk" -type d -name ".git" -exec rm -rf '{}' +
|
||||
|
||||
echo "PICO_SDK_PATH=/opt/pico-sdk" > "${T}/99pico-sdk" || die
|
||||
doenvd "${T}/99pico-sdk"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "If you want to use the Pico SDK now, run:"
|
||||
elog " source /etc/profile"
|
||||
}
|
||||
Reference in New Issue
Block a user