blob: 4d511c6cf73c878431475c157021bba26b4863ae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# Maintainer: KafCoppelia <k740677208@gmail.com>
# BUILD INSTRUCTIONS:
#
# 1. Go to https://softwaretools.infineon.com/tools/com.ifx.tb.tool.modustoolboxprogtools and login with your Infineon account.
# 2. Click on "Download" and download the current version
# 3. Download the .deb package and place it in the same directory as the PKGBUILD
# 4. Build
_pkgname=ModusToolboxProgtools
pkgname=modustoolbox-progtools
_pkgver=1.3
pkgver=${_pkgver}.0.1261
pkgrel=1
pkgdesc="ModusToolbox Programming tools package provides a cross-platform installation of several utilities that allow you to program flash on Infineon MCU and Kit devices."
arch=('x86_64')
license=("LicenseRef-${pkgname}")
depends=('fontconfig' 'libwebp' 'libglvnd' 'dbus' 'libxkbcommon' 'libxkbcommon-x11' 'pango' 'libsm' 'xcb-util-keysyms' 'xcb-util-wm' 'xcb-util-renderutil' \
'openssl-1.1' 'gtk3' 'xcb-util-image' 'libice' 'zstd' 'systemd-libs' 'glib2' 'gcc-libs' 'zlib' 'freetype2' 'libxcb' 'libx11' 'glibc')
url="https://softwaretools.infineon.com/tools/com.ifx.tb.tool.modustoolboxprogtools"
_source="${_pkgname}_${pkgver}.deb"
source=("file://${_source}")
sha256sums=('9a6682318a14b8f2fd0e6282a4e380e0423caba62c925559e90e3255ed3546c5')
options=('!strip')
install="${pkgname}.install"
prepare() {
cd ${srcdir}
bsdtar -xf data.tar.gz -C ./
rm data.tar.gz
mv ./opt/Tools/${_pkgname}-${_pkgver} ./opt/
# Remove the empty directory
rm -r ./opt/Tools
# Update link in desktop file
sed -i "s/opt\/Tools/opt/" ./usr/share/applications/ModusToolbox-Programming-Tools-${pkgver}.desktop
}
package() {
cp -ar ${srcdir}/opt ${pkgdir}/
cp -ar ${srcdir}/usr ${pkgdir}/
# Install license
install -d ${pkgdir}/usr/share/licenses/${pkgname}
install -Dm644 ${srcdir}/usr/share/doc/ModusToolbox-Programming-Tools-${pkgver}/LICENSE -t ${pkgdir}/usr/share/licenses/${pkgname}/
}
|