dev-embedded/pico-sdk: new package, add 2.1.1

Signed-off-by: Manuel <ljn0099@hotmail.com>
This commit is contained in:
Manuel
2025-06-18 23:24:30 +02:00
parent 274b586725
commit b6e3dee014
2 changed files with 41 additions and 0 deletions

View 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>

View 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"
}