# cribbed from https://archlinux.org/packages/extra/x86_64/rpi-imager/ EAPI=9 DESCRIPTION="Raspberry Pi Imaging Utility" HOMEPAGE="https://github.com/raspberrypi/rpi-imager" SRC_URI=" https://downloads.raspberrypi.com/imager/imager_${PV}_amd64.AppImage -> ${P}.AppImage https://raw.githubusercontent.com/raspberrypi/rpi-imager/refs/tags/v${PV}/debian/com.raspberrypi.rpi-imager.desktop -> ${P}.desktop " LICENSE="Apache-2.0" SLOT="0" KEYWORDS="~amd64" S="${WORKDIR}" RESTRICT=strip src_install() { newbin ${DISTDIR}/${P}.AppImage rpi-imager insinto /usr/share/applications doins ${DISTDIR}/${P}.desktop }