blob: 22a558cea431eb21b39db6dabbdead5c13577eda (
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
|
# Maintainer:
pkgname=mcuxpresso-secure-provisioning
pkgver=9.0.1
pkgrel=1
epoch=
pkgdesc="The MCUXpresso Secure Provisioning Tool is a GUI-based application provided to simplify generation and provisioning of bootable executables on NXP MCU devices."
arch=('x86_64')
url="https://www.nxp.com/design/software/development-software/mcuxpresso-software-and-tools-/mcuxpresso-secure-provisioning-tool:MCUXPRESSO-SECURE-PROVISIONING"
license=('custom:"NXP"')
depends=('openssl' 'hidapi' 'libusb' 'libtiff5' 'libdecor')
_install_dir=/opt/nxp
_deb_name=${pkgname}-v${pkgver}-${pkgrel}_amd64.deb
_binary_deb_name=${_deb_name}
source=("file://${_binary_deb_name}")
noextract=("${_binary_deb_name}")
sha512sums=('526c02aef1022bcf5b5b22c24ef924851c44dbe6a81a53454687d31239b471bf4cc01e4e21d990aab0bd8da278525ed65705483c4f41a541158bb15c16243421')
options=('!strip')
prepare() {
cd ${srcdir}/
ar xv ${_deb_name}
bsdtar -x -f data.tar.gz
}
package() {
mkdir -p ${pkgdir}${_install_dir}
# main tool
cp -ar ${srcdir}${_install_dir}/* ${pkgdir}${_install_dir};
# udev rules
mkdir -p ${pkgdir}/usr/lib/udev/rules.d/
cp -ar ${srcdir}/etc/udev/rules.d/* ${pkgdir}/usr/lib/udev/rules.d;
# desktop shortcut
mkdir -p ${pkgdir}/usr/share/{applications,icons,mime}
cp -ar ${srcdir}/usr/share/applications ${pkgdir}/usr/share/applications
cp -ar ${srcdir}/usr/share/icons ${pkgdir}/usr/share/icons
cp -ar ${srcdir}/usr/share/mime ${pkgdir}/usr/share/mime
}
|