Advertisement
Guest User

PKGBUIL_stm32cubemx_4.19.0-1

a guest
Apr 3rd, 2017
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.26 KB | None | 0 0
  1. # This is an example PKGBUILD file. Use this as a start to creating your own,
  2. # and remove these comments. For more information, see 'man PKGBUILD'.
  3. # NOTE: Please fill out the license field for your package! If it is unknown,
  4. # then please put 'unknown'.
  5.  
  6. # Maintainer: Karsten Pufahl <kontakt <AT> karstenpufahl.de>
  7. pkgname=stm32cubemx
  8. pkgver=4.20.0
  9. pkgrel=1
  10. epoch=
  11. pkgdesc="graphical software configuration tool for STM32 microcontrollers that allows generating C initialization code"
  12. arch=(any)
  13. url="http://www.st.com/content/st_com/en/products/development-tools/software-development-tools/stm32-software-development-tools/stm32-configurators-and-code-generators/stm32cubemx.html"
  14. license=('custom')
  15. groups=()
  16. depends=('lib32-glibc'
  17. 'java-environment'
  18. 'bash')
  19. makedepends=('imagemagick')
  20. checkdepends=()
  21. optdepends=()
  22. provides=()
  23. conflicts=()
  24. replaces=()
  25. backup=()
  26. options=(!strip)
  27. install=
  28. changelog=
  29. source=("http://www.st.com/content/ccc/resource/technical/software/sw_development_suite/00/22/e1/cf/b7/83/42/25/stm32cubemx.zip/files/stm32cubemx.zip/jcr:content/translations/en.stm32cubemx.zip"
  30. "LICENSE"
  31. "stm32cubemx.desktop"
  32. "stm32cubemx.sh")
  33. noextract=()
  34. sha512sums=('60c35eafa084abc0e3f1c7655f4dc589fb4869dddd475e87337b3b203b5e8c78de98609f1367a4c7eda3c0aafc87458814adf02926ea6e886b65585d94d0a7b2'
  35. 'ad1897ea5234b712d726b5d3423f05f1c0c5a64e28354afe07dce7451563ae4492366cc252ca379b44793797be20011a66458431fd5453c18a7543ccb8df5397'
  36. '56bff32e35f8eb09ae4df94e4e885aaf9349c687ce9f4901ddd11c83b69a32b19d99ab8dbd90c6679e86e7213c4d41640e52ab0d80b8fc4640a1bc5df9a3af32'
  37. 'bef2450971c152c7f45565e0e36faf1863ddc6616532d5db2f29344de5d2d34852946a89e865059a632761a0c2565177cb2181724837b7b740b0697265d307c0')
  38. validpgpkeys=()
  39.  
  40.  
  41. build() {
  42. cd "${srcdir}"
  43.  
  44. # generate xml file for the provided isntaller to run in non-interactive mode
  45. cat << EOM > auto-install_custom.xml
  46. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  47. <AutomatedInstallation langpack="eng">
  48. <com.st.microxplorer.install.MXHTMLHelloPanel id="readme"/>
  49. <com.st.microxplorer.install.MXLicensePanel id="licence.panel"/>
  50. <com.st.microxplorer.install.MXTargetPanel id="target.panel">
  51. <installpath>$pkgdir/opt/$pkgname/</installpath>
  52. </com.st.microxplorer.install.MXTargetPanel>
  53. <com.st.microxplorer.install.MXShortcutPanel id="shortcut.panel"/>
  54. <com.st.microxplorer.install.MXInstallPanel id="install.panel"/>
  55. <com.st.microxplorer.install.MXFinishPanel id="finish.panel"/>
  56. </AutomatedInstallation>
  57. EOM
  58.  
  59. }
  60.  
  61. package() {
  62. java -jar "${srcdir}/SetupSTM32CubeMX-${pkgver}.exe" "auto-install_custom.xml"
  63.  
  64. # mkdir -p "${pkgdir}/opt"
  65.  
  66. # /usr/bin symlink
  67. # mkdir -p "${pkgdir}/usr/bin"
  68. # cd "${pkgdir}/usr/bin"
  69. # ln -s /opt/$pkgname/STM32CubeMX stm32cubemx
  70.  
  71. install -Dm 755 "${srcdir}/stm32cubemx.sh" "${pkgdir}/usr/bin/${pkgname}"
  72.  
  73. #icon and desktop file
  74. convert "${pkgdir}/opt/stm32cubemx/help/STM32CubeMX.ico" "${srcdir}/${pkgname}-6.png"
  75. install -Dm 644 "${srcdir}/${pkgname}-6.png" "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
  76. install -Dm 644 "${srcdir}/$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
  77.  
  78. #license
  79. install -Dm 644 "${srcdir}/LICENSE" "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
  80. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement