Github messages for voidlinux
 help / color / mirror / Atom feed
From: ericonr <ericonr@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: STM32CubeMX-5.6.1.
Date: Tue, 18 Aug 2020 18:54:55 +0200	[thread overview]
Message-ID: <20200818165455.lA0QzzPQ8PQqquPyfNri4EZ0233PpM0gyOj70vk1i-w@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-22843@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 783 bytes --]

There is an updated pull request by ericonr against master on the void-packages repository

https://github.com/ericonr/void-packages stm32
https://github.com/void-linux/void-packages/pull/22843

New package: STM32CubeMX-5.6.1.
I have to check the licensing regarding redistribution, if anyone could help me that would be awesome. https://www.st.com/content/ccc/resource/legal/legal_agreement/license_agreement/group0/39/50/32/6c/e0/a8/45/2d/DM00218346/files/DM00218346.pdf/jcr:content/translations/en.DM00218346.pdf

It should be cross platform, but I haven't managed to take a look at musl yet, and I don't think my RPi can take it. If anyone could give it a spin that would be great too!

A patch file from https://github.com/void-linux/void-packages/pull/22843.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-stm32-22843.patch --]
[-- Type: text/x-diff, Size: 3016 bytes --]

From 87744d4b3805d7b8e3ce8be69bee474332fac77b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C3=89rico=20Rolim?= <erico.erc@gmail.com>
Date: Fri, 12 Jun 2020 16:42:36 -0300
Subject: [PATCH] New package: STM32CubeMX-5.6.1.

---
 srcpkgs/STM32CubeMX/files/STM32CubeMX         |  2 ++
 srcpkgs/STM32CubeMX/files/STM32CubeMX.desktop | 10 ++++++
 srcpkgs/STM32CubeMX/template                  | 36 +++++++++++++++++++
 srcpkgs/STM32CubeMX/update                    |  1 +
 4 files changed, 49 insertions(+)
 create mode 100644 srcpkgs/STM32CubeMX/files/STM32CubeMX
 create mode 100644 srcpkgs/STM32CubeMX/files/STM32CubeMX.desktop
 create mode 100644 srcpkgs/STM32CubeMX/template
 create mode 100644 srcpkgs/STM32CubeMX/update

diff --git a/srcpkgs/STM32CubeMX/files/STM32CubeMX b/srcpkgs/STM32CubeMX/files/STM32CubeMX
new file mode 100644
index 00000000000..d51f239883c
--- /dev/null
+++ b/srcpkgs/STM32CubeMX/files/STM32CubeMX
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec java -jar /opt/STM32CubeMX/STM32CubeMX.exe "$@"
diff --git a/srcpkgs/STM32CubeMX/files/STM32CubeMX.desktop b/srcpkgs/STM32CubeMX/files/STM32CubeMX.desktop
new file mode 100644
index 00000000000..6b147d79dc5
--- /dev/null
+++ b/srcpkgs/STM32CubeMX/files/STM32CubeMX.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Type=Application
+Name=STM32CubeMX
+GenericName=Configuration tool for STM32 microcontrollers
+Comment=Graphical software configuration tool for STM32 microcontrollers that allows generating C initialization code
+Icon=stm32cubemx.png
+Exec=STM32CubeMX
+Terminal=false
+Categories=Development;IDE;
+StartupNotify=false
diff --git a/srcpkgs/STM32CubeMX/template b/srcpkgs/STM32CubeMX/template
new file mode 100644
index 00000000000..8a4ee0e92d7
--- /dev/null
+++ b/srcpkgs/STM32CubeMX/template
@@ -0,0 +1,36 @@
+# Template file for 'STM32CubeMX'
+pkgname=STM32CubeMX
+version=5.6.1
+revision=1
+create_wrksrc=yes
+hostmakedepends="ImageMagick poppler"
+depends="openjdk8"
+short_desc="STM32Cube initialization code generator"
+maintainer="Érico Nogueira <ericonr@disroot.org>"
+license="custom:Proprietary"
+homepage="https://www.st.com/en/development-tools/stm32cubemx.html"
+distfiles="https://sw-center.st.com/packs/resource/library/stm32cube_mx_v${version//./}.zip"
+checksum=e554e11a44b0400e6a235a7a579e83a616c2493566386f33e2a8ffc2cd62f164
+repository=nonfree
+nostrip=yes
+nopie=yes
+
+do_build() {
+	convert "help/STM32CubeMX.ico[17]" stm32cubemx.png
+
+	rm -rf intInstall/
+
+	pdftotext -l 2 -eol unix -nopgbrk help/software_license_agreement.pdf LICENSE
+}
+
+do_install() {
+	vmkdir "opt/${pkgname}"
+	vcopy . "opt/${pkgname}"
+
+	vbin "${FILESDIR}/STM32CubeMX"
+
+	vinstall "${FILESDIR}/STM32CubeMX.desktop" 0644 usr/share/applications
+	vinstall stm32cubemx.png 0644 usr/share/pixmaps
+
+	vlicense LICENSE
+}
diff --git a/srcpkgs/STM32CubeMX/update b/srcpkgs/STM32CubeMX/update
new file mode 100644
index 00000000000..3aab9e06dd1
--- /dev/null
+++ b/srcpkgs/STM32CubeMX/update
@@ -0,0 +1 @@
+pattern='STM32CubeMX release \K[\d]+\.[\d]+\.[\d]+'

  parent reply	other threads:[~2020-08-18 16:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-22843@inbox.vuxu.org>
2020-07-23 23:27 ` ericonr
2020-08-18 16:54 ` ericonr [this message]
2020-08-31 17:18 ` [PR REVIEW] " Piraty
2020-08-31 17:22 ` ericonr
2020-12-11 18:22 ` [PR PATCH] [Closed]: " ericonr

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200818165455.lA0QzzPQ8PQqquPyfNri4EZ0233PpM0gyOj70vk1i-w@z \
    --to=ericonr@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).