# Maintainer: laserK pkgname=stm32cubemx pkgver=6.9.0 pkgrel=1 epoch= pkgdesc="graphical software configuration tool for STM32 microcontrollers that allows generating C initialization code" arch=(any) url="https://www.st.com/en/development-tools/stm32cubemx.html" license=('custom') groups=() depends=('java-runtime=20' 'archlinux-java-run' 'bash') makedepends=('imagemagick') checkdepends=() optdepends=() provides=() conflicts=() replaces=() backup=() options=(!strip) install= changelog= source=("https://sw-center.st.com/packs/resource/library/stm32cube_mx_v${pkgver//./}-lin.zip" "stm32cubemx.desktop" "stm32cubemx.sh") noextract=() sha512sums=('fb51da651c5ccfa0fcbd799d89d11ac202deed2938f7675f1f3b78b5b2fc0ebcad3554783489394d265160e157aa9d669962d8aa583defb4a306a93af142667e' '83c67bef3e8f8434903fe0c067442cc7473459386fdcb0225af1b3a75fd75e2be393f91f877c8410f1055ca4ec531b2df707fcab10663cae382a7f4066c8548b' 'e5b604754fcfc62f8b745dea8c921cc72d1ca1bc81bd3a2cd26f8871a86fad3598b60a4b3f5ff2503c76e6c2dcb9c9ce37e63ba84718c2d427a8de8003a318f2') validpgpkeys=() package() { cd "${srcdir}" mkdir -p "${pkgdir}/opt/stm32cubemx" cp -r "${srcdir}/MX/." "${pkgdir}/opt/stm32cubemx" install -Dm 755 "${srcdir}/stm32cubemx.sh" "${pkgdir}/usr/bin/${pkgname}" #icon and desktop file convert "${srcdir}/MX/help/STM32CubeMX.ico[0]" "${srcdir}/MX/${pkgname}.png" install -Dm 644 "${srcdir}/MX/${pkgname}.png" "${pkgdir}/usr/share/pixmaps/${pkgname}.png" install -Dm 644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop" #license install -Dm 644 "${srcdir}/MX/help/software_license_agreement.pdf" "$pkgdir/usr/share/licenses/${pkgname}/LICENSE.pdf" }