1 # Maintainer: BxS <bxsbxs at gmail dot com>
3 pkgname=microchip-mplabc18_bin
6 pkgdesc="C compiler for PIC18 MCUs"
8 url='http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en010014'
10 [ $CARCH = x86_64 ] && depends=(lib32-glibc)
13 options=(!strip docs libtool emptydirs !zipman)
14 install=microchip-mplabc18_bin.install
15 instdir=/opt/microchip/mplabc18/v$pkgver
16 installer=mplabc18-v$pkgver-linux-full-installer.run
17 source=(http://ww1.microchip.com/downloads/mplab/X/$installer)
18 md5sums=(f29df9a4e5c9641a8909bd0a5452d4a9)
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\ny\n$pkgdir$instdir\ny\n" > inst_input
29 $srcdir/$installer --mode text < inst_input &> /dev/null
32 rm $pkgdir$instdir/Uninstall*
34 mkdir -p $pkgdir/usr/share/licenses/$pkgname
35 ln -s $instdir/MPLABC18CompilerLicense.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE