1 # Maintainer: BxS <bxsbxs at gmail dot com>
3 pkgname=microchip-mplabc30_bin
6 pkgdesc="C compiler for PIC24 MCUs and dsPIC DSCs"
8 url='http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en010065'
10 [ $CARCH = x86_64 ] && depends=(lib32-glibc)
13 options=(!strip docs libtool emptydirs !zipman)
14 install=microchip-mplabc30_bin.install
15 instdir=/opt/microchip/mplabc30/v$pkgver
16 installer=mplabc30-v$pkgver-linux-installer.run
17 source=(http://ww1.microchip.com/downloads/mplab/X/$installer)
18 md5sums=(f50954d415a7bef3abf190d9c4f8f6e2)
21 echo -e "Creating the Package\n Please wait..."
25 mkdir -p $pkgdir$instdir
27 chmod 0755 $srcdir/$installer
28 echo -e "\n\n\n\n\n\n\n\n\n\n\n\n\ny\n$pkgdir$instdir\ny\n" > inst_input
29 $srcdir/$installer --edition lite --mode text < inst_input &> /dev/null
32 rm $pkgdir$instdir/Uninstall*
34 mkdir -p $pkgdir/usr/share/licenses/$pkgname
35 ln -s $instdir/License.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE