add ebuild for stm32flash-0.5

master
S.J.R. van Schaik 8 years ago
parent 7dd6d681c3
commit b7ce5b1a6b
  1. 2
      dev-embedded/stm32flash/Manifest
  2. 32
      dev-embedded/stm32flash/stm32flash-0.5.ebuild

@ -0,0 +1,2 @@
DIST stm32flash-0.5.tar.gz 41087 SHA256 97aa9422ef02e82f7da9039329e21a437decf972cb3919ad817f70ac9a49e306 SHA512 a01875a315d92d5e347372b736f2afa2f633851bf13af1326341c0c91e17cef54b6730ed1279280e86d3797033c856dfc25e8c595e010772b9287aaf965273f9 WHIRLPOOL 2fd964fd3bf4799e0eb737e44f0669eac7f766d1811d29c3fa22b17cf6028431e48bae434aae3a2c3862d61e77c07686e2b8ef2374fd759824af8553cbfc9ad1
EBUILD stm32flash-0.5.ebuild 680 SHA256 6df817c2f22776a1ee1c752dd240827e40e0294cad9600ce144404987cba131c SHA512 d6d48a5ff094f837be7c080bfd155a0220b43cc756891f8f4741995a690d73cbd0787a8c7aebb939b8135c98277210acd4da43fd9b939ed2fb2ec1ac5ed12d11 WHIRLPOOL 242b5a4197fe15052389048109e1827cf09e31483cb2d1037454445a48bd3f5f14465660fb034928f057b4dfd903ec784d8a343c90f69eda66f75af56ece7f4a

@ -0,0 +1,32 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI="6"
inherit toolchain-funcs
DESCRIPTION="Open source flash program for STM32 using the ST serial bootloader"
HOMEPAGE="http://sourceforge.net/projects/stm32flash/"
if [[ ${PV} == "9999" ]]; then
EGIT_REPO_URI="git://git.code.sf.net/p/stm32flash/code"
inherit git-r3
else
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
KEYWORDS="~amd64"
S="${WORKDIR}"/${PN}
fi
LICENSE="GPL-2"
SLOT="0"
IUSE=""
DEPEND=""
RDEPEND=""
src_compile() {
emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" AR="$(tc-getAR)"
}
src_install() {
emake DESTDIR="${D}" PREFIX="/usr" install
}
Loading…
Cancel
Save