reduce the space needed for packaging, down to ~3Gb

This commit is contained in:
Romain Bazile 2017-05-04 15:20:55 +02:00
parent 0191eb2aae
commit d1f19be369
2 changed files with 7 additions and 2 deletions

View file

@ -1,7 +1,7 @@
pkgbase = mcuxpresso-ide pkgbase = mcuxpresso-ide
pkgdesc = An easy-to-use integrated development environment (IDE) for creating, building, debugging, and optimizing your application. From BIN package distributed by NXP. pkgdesc = An easy-to-use integrated development environment (IDE) for creating, building, debugging, and optimizing your application. From BIN package distributed by NXP.
pkgver = 10.0.0_344 pkgver = 10.0.0_344
pkgrel = 1 pkgrel = 2
url = http://www.nxp.com/MCUXPresso url = http://www.nxp.com/MCUXPresso
arch = x86_64 arch = x86_64
license = custom:"NXP" license = custom:"NXP"

View file

@ -2,7 +2,7 @@
pkgname=mcuxpresso-ide pkgname=mcuxpresso-ide
pkgver=10.0.0_344 pkgver=10.0.0_344
pkgrel=1 pkgrel=2
epoch= epoch=
pkgdesc="An easy-to-use integrated development environment (IDE) for creating, building, debugging, and optimizing your application. From BIN package distributed by NXP." pkgdesc="An easy-to-use integrated development environment (IDE) for creating, building, debugging, and optimizing your application. From BIN package distributed by NXP."
arch=('x86_64') arch=('x86_64')
@ -18,13 +18,18 @@ options=('!strip')
prepare() { prepare() {
chmod +x mcuxpressoide-${pkgver}.${arch}.deb.bin chmod +x mcuxpressoide-${pkgver}.${arch}.deb.bin
./mcuxpressoide-${pkgver}.${arch}.deb.bin --noexec --keep --target ${srcdir} ./mcuxpressoide-${pkgver}.${arch}.deb.bin --noexec --keep --target ${srcdir}
rm mcuxpressoide-${pkgver}.${arch}.deb.bin
cd ${srcdir}/ cd ${srcdir}/
mkdir mcuxpressoide mkdir mcuxpressoide
bsdtar -x -f mcuxpressoide-${pkgver}.${arch}.deb -C mcuxpressoide/ bsdtar -x -f mcuxpressoide-${pkgver}.${arch}.deb -C mcuxpressoide/
rm mcuxpressoide-${pkgver}.${arch}.deb
bsdtar -x -f mcuxpressoide/data.tar.gz -C mcuxpressoide/ bsdtar -x -f mcuxpressoide/data.tar.gz -C mcuxpressoide/
rm mcuxpressoide/data.tar.gz
mkdir JLink_Linux_x86_64 mkdir JLink_Linux_x86_64
bsdtar -x -f JLink_Linux_x86_64.deb -C JLink_Linux_x86_64/ bsdtar -x -f JLink_Linux_x86_64.deb -C JLink_Linux_x86_64/
rm JLink_Linux_x86_64.deb
bsdtar -x -f JLink_Linux_x86_64/data.tar.gz -C JLink_Linux_x86_64/ bsdtar -x -f JLink_Linux_x86_64/data.tar.gz -C JLink_Linux_x86_64/
rm JLink_Linux_x86_64/data.tar.gz
} }