Update pkg to download the package manually
NXP does not allow now downloading the package without login Signed-off-by: Daniel Plaza <dplaza@intelligentdata.es>
This commit is contained in:
parent
a409afef57
commit
daec68db0f
2 changed files with 21 additions and 20 deletions
8
.SRCINFO
8
.SRCINFO
|
@ -5,18 +5,16 @@ pkgbase = mcuxpresso-ide
|
||||||
url = http://www.nxp.com/MCUXPresso
|
url = http://www.nxp.com/MCUXPresso
|
||||||
arch = x86_64
|
arch = x86_64
|
||||||
license = custom:"NXP"
|
license = custom:"NXP"
|
||||||
depends = dfu-util
|
|
||||||
depends = libusb
|
|
||||||
depends = ncurses
|
depends = ncurses
|
||||||
depends = glibc
|
depends = glibc
|
||||||
depends = lib32-glibc
|
depends = lib32-glibc
|
||||||
depends = jlink-software-and-documentation
|
depends = jlink-software-and-documentation
|
||||||
|
depends = dfu-util
|
||||||
|
depends = libusb
|
||||||
noextract = mcuxpressoide-11.2.1_4149.x86_64.deb.bin
|
noextract = mcuxpressoide-11.2.1_4149.x86_64.deb.bin
|
||||||
options = !strip
|
options = !strip
|
||||||
source = https://freescaleesd.flexnetoperations.com/337170/687/17360687/mcuxpressoide-11.2.1_4149.x86_64.deb.bin
|
source = file://mcuxpressoide-11.2.1_4149.x86_64.deb.bin
|
||||||
source = LICENSE
|
|
||||||
sha256sums = f45ae45f6cdcb6232b9a03551cbcdc0fdad9e5c12898d26dd436fdd6a7091bb5
|
sha256sums = f45ae45f6cdcb6232b9a03551cbcdc0fdad9e5c12898d26dd436fdd6a7091bb5
|
||||||
sha256sums = 581e52868fa304c1632045f6a05b2495d95bae4011525f32f2ccf66fbaccfdca
|
|
||||||
|
|
||||||
pkgname = mcuxpresso-ide
|
pkgname = mcuxpresso-ide
|
||||||
|
|
||||||
|
|
33
PKGBUILD
33
PKGBUILD
|
@ -1,4 +1,5 @@
|
||||||
# Maintainer: Daniel Plaza <daniel.plaza.espi at gmail dot com>
|
# Maintainer: Daniel Plaza <daniel.plaza.espi at gmail dot com>
|
||||||
|
# Contributor: Romain Bazile <gromain.baz at gmail dot com>
|
||||||
|
|
||||||
pkgname=mcuxpresso-ide
|
pkgname=mcuxpresso-ide
|
||||||
pkgver=11.2.1_4149
|
pkgver=11.2.1_4149
|
||||||
|
@ -8,12 +9,11 @@ pkgdesc="An easy-to-use integrated development environment (IDE) for creating, b
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
url="http://www.nxp.com/MCUXPresso"
|
url="http://www.nxp.com/MCUXPresso"
|
||||||
license=('custom:"NXP"')
|
license=('custom:"NXP"')
|
||||||
depends=('dfu-util' 'libusb' 'ncurses' 'glibc' 'lib32-glibc' 'jlink-software-and-documentation')
|
depends=('ncurses' 'glibc' 'lib32-glibc' 'jlink-software-and-documentation' 'dfu-util' 'libusb')
|
||||||
|
|
||||||
source=("https://freescaleesd.flexnetoperations.com/337170/687/17360687/mcuxpressoide-${pkgver}.${arch}.deb.bin" "LICENSE")
|
source=("file://mcuxpressoide-${pkgver}.${arch}.deb.bin")
|
||||||
noextract=("mcuxpressoide-${pkgver}.${arch}.deb.bin")
|
noextract=("mcuxpressoide-${pkgver}.${arch}.deb.bin")
|
||||||
sha256sums=('f45ae45f6cdcb6232b9a03551cbcdc0fdad9e5c12898d26dd436fdd6a7091bb5'
|
sha256sums=('f45ae45f6cdcb6232b9a03551cbcdc0fdad9e5c12898d26dd436fdd6a7091bb5')
|
||||||
'581e52868fa304c1632045f6a05b2495d95bae4011525f32f2ccf66fbaccfdca')
|
|
||||||
options=('!strip')
|
options=('!strip')
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
|
@ -27,22 +27,25 @@ prepare() {
|
||||||
bsdtar -x -f mcuxpressoide/data.tar.gz -C mcuxpressoide/
|
bsdtar -x -f mcuxpressoide/data.tar.gz -C mcuxpressoide/
|
||||||
rm mcuxpressoide/data.tar.gz
|
rm mcuxpressoide/data.tar.gz
|
||||||
rm JLink_Linux_x86_64.deb
|
rm JLink_Linux_x86_64.deb
|
||||||
|
rm ${srcdir}/mcuxpressoide/usr/local/mcuxpressoide-${pkgver}/JLink_Linux_x86_64.deb
|
||||||
# Rename main folder in place
|
# Rename main folder in place
|
||||||
mv ${srcdir}/mcuxpressoide/usr/local/mcuxpressoide-${pkgver} ${srcdir}/mcuxpressoide/usr/local/${pkgname};
|
mv ${srcdir}/mcuxpressoide/usr/local/mcuxpressoide-${pkgver} ${srcdir}/mcuxpressoide/usr/local/${pkgname};
|
||||||
# Update link in desktop file
|
# Update link in desktop file
|
||||||
mv ${srcdir}/mcuxpressoide/usr/share/applications/com.nxp.mcuxpressoide.desktop ${srcdir}/mcuxpressoide/usr/share/applications/com.nxp.mcuxpressoide.desktop.old
|
cat ${srcdir}/mcuxpressoide/usr/share/applications/com.nxp.mcuxpressoide.desktop | sed "s/mcuxpressoide-${pkgver}/mcuxpresso-ide/" > ${srcdir}/mcuxpressoide/usr/share/applications/com.nxp.mcuxpressoide.desktop.1
|
||||||
cat ${srcdir}/mcuxpressoide/usr/share/applications/com.nxp.mcuxpressoide.desktop.old | sed "s/mcuxpressoide-${pkgver}/mcuxpresso-ide/" > ${srcdir}/mcuxpressoide/usr/share/applications/com.nxp.mcuxpressoide.desktop
|
cat ${srcdir}/mcuxpressoide/usr/share/applications/com.nxp.mcuxpressoide.desktop.1 | sed "s/usr\/local/opt/" > ${srcdir}/mcuxpressoide/usr/share/applications/com.nxp.mcuxpressoide.desktop
|
||||||
rm ${srcdir}/mcuxpressoide/usr/share/applications/com.nxp.mcuxpressoide.desktop.old
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
# Create folder for license file
|
# Copy main folder in place
|
||||||
mkdir -p ${srcdir}/mcuxpressoide/usr/share/NXPLPCXpresso;
|
cp -ar ${srcdir}/mcuxpressoide/usr ${pkgdir}/;
|
||||||
# Move main folder in place
|
# Move application files to /opt as they don't obey standard file system hierarchy
|
||||||
mv ${srcdir}/mcuxpressoide/usr ${pkgdir}/;
|
mv ${pkgdir}/usr/local ${pkgdir}/opt;
|
||||||
# Move udev rules from /lib to /usr/lib folder
|
# Copy licenses of software components (FreeRTOS, Java etc.) accarding to system directory structure
|
||||||
mv ${srcdir}/mcuxpressoide/lib/udev ${pkgdir}/usr/lib/;
|
mkdir ${pkgdir}/usr/share/licenses
|
||||||
# Add LICENSE file to licenses folder
|
cp -ar ${pkgdir}/opt/mcuxpresso-ide/licenses ${pkgdir}/usr/share/licenses/${pkgname}
|
||||||
install -D -m644 ${srcdir}/LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE;
|
# Copy udev rules from /lib to /usr/lib folder
|
||||||
|
cp -ar ${srcdir}/mcuxpressoide/lib/udev ${pkgdir}/usr/lib/;
|
||||||
|
# Add Product LICENSE file to licenses folder
|
||||||
|
install -D -m644 ${srcdir}/ProductLicense.txt ${pkgdir}/usr/share/licenses/${pkgname}/ProductLicense.txt;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue