stm32cubemx/PKGBUILD
2023-08-10 15:33:04 +02:00

46 lines
1.8 KiB
Bash

# Maintainer: laserK <echo 'Y29udGFjdEBrYXJzdGVucHVmYWhsLmRlCg==' | base64 -d>
pkgname=stm32cubemx
pkgver=6.9.1
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>=17'
'java-runtime<21'
'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=('8545425ba395b643ff89a7e7ff5d9c57836696a3d0fc4cfe3d6761567d914d0db772afb249aee3226a2e7b9eab942e026615173968edf2ab2a4996453a3da0b7'
'83c67bef3e8f8434903fe0c067442cc7473459386fdcb0225af1b3a75fd75e2be393f91f877c8410f1055ca4ec531b2df707fcab10663cae382a7f4066c8548b'
'8c46e1396e629733d4a692305e877a5b340b4a00ecc7add7e98973c7f216fa3f7128d7c23a9d37a832ac928a3b778d26ebfb0df9b9b49112b74e1dafe827ee98')
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"
}