Package Details: stm32cubeide 1.10.1-1

Git Clone URL: https://aur.archlinux.org/stm32cubeide.git (read-only, click to copy)
Package Base: stm32cubeide
Description: Integrated Development Environment for STM32
Upstream URL: https://www.st.com/en/development-tools/stm32cubeide.html
Keywords: arm cortex cortex-m cube cubeide stm32
Licenses: Commercial
Submitter: kumen
Maintainer: kumen
Last Packager: kumen
Votes: 23
Popularity: 0.90
First Submitted: 2019-05-02 15:05 (UTC)
Last Updated: 2022-08-16 16:49 (UTC)

Dependencies (9)

Required by (0)

Sources (3)

Pinned Comments

kumen commented on 2020-08-17 11:22 (UTC)

You must download it manually here: https://www.st.com/en/development-tools/stm32cubeide.html and put it to your home Downloads directory.

Latest Comments

1 2 3 4 5 6 7 Next › Last »

Sabu commented on 2022-09-17 22:25 (UTC)

@xiretza: As shown above in the list of dependencies, you should have xdg-user-dirs installed.

xiretza commented on 2022-09-17 08:14 (UTC) (edited on 2022-09-17 08:18 (UTC) by xiretza)

Fails with:

PKGBUILD: line 19: xdg-user-dir: command not found

Please either remove this whole _DOWNLOADS_DIR logic (PKGBUILDs really aren't supposed to touch anything outside of $srcdir), or at least guard the xdg-user-dir invocation so it doesn't cause errors before makedepends are installed.

oe1tkt commented on 2022-05-27 17:06 (UTC) (edited on 2022-05-27 17:07 (UTC) by oe1tkt)

With v1.9.0, you must

1.) download the software file manually from https://www.st.com/en/development-tools/stm32cubeide.html selecting Generic Linux Installer and install it into the same folder where you find the PKGBUILD. Unfortunately the filename has changed, so additionally you have to edit the PKGBUILD file,

2.) change the line in PKGBUILD to:

_pkg_file_name=en.st-stm32cubeide_1.9.0_12015_20220302_0855_amd64.sh.zip

3.) makepkg -si

tuankiet65 commented on 2022-03-24 12:20 (UTC)

I don't have a J-Link so I can't say anything about that, sorry.

kumen commented on 2022-03-09 15:58 (UTC) (edited on 2022-03-09 15:58 (UTC) by kumen)

I was thinking about replacing integrated J-link for jlink-software-and-documentation. What do you think about that?
It was working fine in version v1.8.0 of IDE.

kumen commented on 2022-03-09 15:54 (UTC)

@tuankiet65 you are right, I don't know why arm-none-eabi-gdb from IDE need specific version of ncurses. Replacing it by arm-none-eabi-gdb from system was dirty quick fix, because I needed to debug some MCU :) Unfortunately "/" in path to GDB binary was somehow forgotten. I will fix this later today.

tuankiet65 commented on 2022-03-09 06:45 (UTC)

Also, the "Replace GDB by system" is a bit overzealous - it also removes the arm-none-eabi-gdb-add-index and arm-none-eabi-gdb-add-index-py scripts. Since those are just bash scripts, I don't think they should be replaced by the system equivalent (not to mention Arch's arm-none-eabi-gdb doesn't provide the arm-none-eabi-gdb-add-index-py script)

tuankiet65 commented on 2022-03-09 05:43 (UTC) (edited on 2022-03-09 05:43 (UTC) by tuankiet65)

The part to symlink STM32CubeIDE's gdb to system gdb should use absolute part for system gdb:

ln -s /usr/bin/arm-none-eabi-gdb "${pkgdir}/opt/stm32cubeide/plugins/"com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32*/tools/bin
ln -s /usr/bin/arm-none-eabi-gdb-add-index "${pkgdir}/opt/stm32cubeide/plugins/"com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32*/tools/bin

davorvr commented on 2021-11-26 18:38 (UTC)

Here's an edited PKGBUILD for v1.8.0 that worked for me. I did have to manually download the 99-jlink.rules.patch file and place it in the build directory when using makepkg.

# Maintainer: kumen
# Contributor: nightuser <nightuser.android@gmail.com>

pkgname="stm32cubeide"
pkgver=1.7.0
_pkgver_ext=1.8.0_11526_20211125_0815
_pkg_file_name=en.st-stm32cubeide_1.7.0_10852_20210715_0634_amd64.sh_v1.7.0.zip
_pkg_file_name=en.st-stm32cubeide_1.8.0_11526_20211125_0815_amd64.sh_v1.8.0.zip
pkgrel=1
pkgdesc="Integrated Development Environment for STM32"
arch=("x86_64")
makedepends=('xdg-user-dirs' 'imagemagick')
depends=('java-runtime' 'jlink-software-and-documentation' 'stlink' 'ncurses5-compat-libs' 'glibc' 'libusb' 'webkit2gtk')
optdepends=()
conflicts=()
url="https://www.st.com/en/development-tools/stm32cubeide.html"
license=('Commercial')
options=(!strip)

_DOWNLOADS_DIR=`xdg-user-dir DOWNLOAD`
if [ ! -f ${PWD}/${_pkg_file_name} ]; then
    if [ -f $_DOWNLOADS_DIR/${_pkg_file_name} ]; then
        ln -sfn $_DOWNLOADS_DIR/${_pkg_file_name} ${PWD}
    else
        msg2 ""
        msg2 "Package not found!"
        msg2 "The package can be downloaded here: ${url}"
        msg2 "Please remember to put a downloaded package ${_pkg_file_name} into the build directory ${PWD} or $_DOWNLOADS_DIR"
        msg2 ""
    fi
fi

source=("local://${_pkg_file_name}"
    "99-jlink.rules.patch"
    "https://www.st.com/resource/en/license_agreement/dm00218346.pdf")
sha256sums=('623db74cd47dd42675193e4ed3c5880d708ad187c95fedec8337042789e004b2'
    '0f3f69f7c980a701bf814e94595f5acb51a5d91be76b74e5b632220cfb0e7bb3'
    'SKIP')

prepare(){
    mkdir -p build
    sh "${srcdir}/"st-stm32cubeide_${_pkgver_ext}_amd64.sh --quiet --noexec --nox11 --target "${srcdir}/build"

    mkdir -p "${srcdir}/build/stlink-server"
    sh "${srcdir}/build/"st-stlink-server.*.install.sh --quiet --noexec --nox11 --target "${srcdir}/build/stlink-server"

    mkdir -p "${srcdir}/build/stlink-udev"
    sh "${srcdir}/build/"st-stlink-udev-rules-*-linux-noarch.sh --quiet --noexec --nox11 --target "${srcdir}/build/stlink-udev"

    mkdir -p "${srcdir}/build/jlink-udev"
    sh "${srcdir}/build/"segger-jlink-udev-rules-*-linux-noarch.sh --quiet --noexec --nox11 --target "${srcdir}/build/jlink-udev"
}

package() {
    cd "$srcdir"

    msg2 'Installing STM32CubeIDE'
    install -d -m755 "${pkgdir}/opt/${pkgname}"
    tar zxf "./build/st-stm32cubeide_${_pkgver_ext}_amd64.tar.gz" -C "${pkgdir}/opt/${pkgname}"

    msg2 'Installing stlink server'
    install -d -m755 "${pkgdir}/usr/bin/"
    cp "${srcdir}/build/stlink-server/stlink-server" "${pkgdir}/usr/bin/"
    chmod 0755 "${pkgdir}/usr/bin/stlink-server"
    chown root:root "${pkgdir}/usr/bin/stlink-server"

    msg2 'Instalation of STlink udev rules skipped'
    #msg2 'Installing STlink udev rules'
    #install -d -m755 "${pkgdir}/usr/lib/udev/rules.d/"
    #install -D -o root -g root -m 644 -t "${pkgdir}/usr/lib/udev/rules.d/" "$srcdir/build/stlink-udev/fileset/"*.rules

    msg2 'Instalation of JLink udev rules skipped'
    #msg2 'Installing JLink udev rules'
    #install -d -m755 "${pkgdir}/usr/lib/udev/rules.d/"
    #install -D -o root -g root -m 644 -t "${pkgdir}/usr/lib/udev/rules.d/" "$srcdir/build/jlink-udev/"*.rules
    #patch -i "${srcdir}/99-jlink.rules.patch" "${pkgdir}/usr/lib/udev/rules.d/99-jlink.rules"

    msg2 'Instalation of binary file'
    install -Dm755 /dev/stdin "${pkgdir}/usr/bin/${pkgname}" <<END
#!/bin/sh
/opt/stm32cubeide/stm32cubeide "\$@"
END

    msg2 'Installing desktop shortcut and icon'
    convert "${pkgdir}/opt/stm32cubeide/icon.xpm" "${srcdir}/${pkgname}.png"
    install -Dm 644 "${srcdir}/${pkgname}.png" "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
    install -Dm644 /dev/stdin "$pkgdir/usr/share/applications/${pkgname}.desktop" <<END
[Desktop Entry]
Name=STM32CubeIDE
Comment=STM32CubeIDE 1.7.0
GenericName=STM32CubeIDE
Exec=env GDK_BACKEND=x11 stm32cubeide %F
Icon=stm32cubeide
Path=/opt/stm32cubeide/
Terminal=false
StartupNotify=true
Type=Application
Categories=Development
END

    msg2 'Instalation of license file'
    install -d -m755 "${pkgdir}/usr/share/licenses/${pkgname}/"
    install -D -o root -g root -m 644 -t "${pkgdir}/usr/share/licenses/${pkgname}/" "${srcdir}/dm00218346.pdf"
}

#
# makepkg --printsrcinfo > .SRCINFO
#

# vim: set ts=8 sw=8 tw=0 noet:

yjun commented on 2021-08-29 06:08 (UTC) (edited on 2021-08-29 06:09 (UTC) by yjun)

I find the direct link to download 1.7.0 archieve : https://www.st.com/content/ccc/resource/technical/software/sw_development_suite/group0/d5/f6/71/a8/3f/91/40/97/stm32cubeide_lnx/files/st-stm32cubeide_1.7.0_10852_20210715_0634_amd64.sh.zip/jcr:content/translations/en.st-stm32cubeide_1.7.0_10852_20210715_0634_amd64.sh.zip

and the lastest direct download link could get from https://www.st.com/content/st_com_cx/en/products/development-tools/software-development-tools/stm32-software-development-tools/stm32-ides/stm32cubeide/_jcr_content/get-software/get-software-table-body.nocache.html/st-site-cx/components/containers/product/get-software-table-body.html, which is like this

<div id="dlLink" data-download-path="/content/ccc/resource/technical/software/sw_development_suite/group0/d5/f6/71/a8/3f/91/40/97/stm32cubeide_lnx/files/st-stm32cubeide_1.7.0_10852_20210715_0634_amd64.sh.zip/jcr:content/translations/en.st-stm32cubeide_1.7.0_10852_20210715_0634_amd64.sh.zip"></div>

maybe it is ok to use this URL as source in PKGBUILD instead of local://xx ?